code: drawterm

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