shithub: drawterm-fdroid

ref: a43c1e6fab4d75c8d173a482ee8f4aa04de151c0
dir: /libc/fmtstr.c/

View raw version
#include <u.h>
#include <libc.h>

char*
fmtstrflush(Fmt *f)
{
	if(f->start == nil)
		return nil;
	*(char*)f->to = '\0';
	return f->start;
}