git: 9front

ref: bc7d74f09b53c39ada4e73ce73c01c6c0928f9f4
dir: /sys/src/cmd/unix/drawterm/libc/runefmtstr.c/

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

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