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