ref: d5f2d2cc3fc7c2d3701e906df5d2d53781c4ee9c 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; }