shithub: riscv

ref: f2a9244e2d5cf7011c07e5a3ea34c1fa032cae5c
dir: /sys/src/cmd/unix/drawterm/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;
}