shithub: riscv

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