xref: /plan9/sys/src/cmd/unix/drawterm/libc/runefmtstr.c (revision 2282df4ee19682a10ae95200202320ff2912f104)
1 #include <u.h>
2 #include <libc.h>
3 #include "fmtdef.h"
4 
5 Rune*
runefmtstrflush(Fmt * f)6 runefmtstrflush(Fmt *f)
7 {
8 	if(f->start == nil)
9 		return nil;
10 	*(Rune*)f->to = '\0';
11 	return f->start;
12 }
13