ref: d32578073676ce90769c378cbd5c61db22c1b49e dir: /sys/src/libc/fmt/fmtstr.c/
#include <u.h> #include <libc.h> char* fmtstrflush(Fmt *f) { if(f->start == nil) return nil; *(char*)f->to = '\0'; return f->start; }