trunefmtstr.c - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       trunefmtstr.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 }