shithub: riscv

ref: 71a993b4ca2c455f491aad669e3a4ac2979f6bb8
dir: /sys/src/libc/fmt/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;
}