shithub: drawterm

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