code: drawterm

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

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

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