fmtstr.c 167 B

123456789101112
  1. #include <u.h>
  2. #include <libc.h>
  3. #include "fmtdef.h"
  4. char*
  5. fmtstrflush(Fmt *f)
  6. {
  7. if(f->start == nil)
  8. return nil;
  9. *(char*)f->to = '\0';
  10. return (char*)f->start;
  11. }