shithub: drawterm

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