Blob


1 /* Copyright (c) 2002-2006 Lucent Technologies; see LICENSE */
2 #include <stdlib.h>
3 #include <stdarg.h>
4 #include "plan9.h"
5 #include "fmt.h"
6 #include "fmtdef.h"
8 char*
9 fmtstrflush(Fmt *f)
10 {
11 if(f->start == nil)
12 return nil;
13 *(char*)f->to = '\0';
14 f->to = f->start;
15 return (char*)f->start;
16 }