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