URI:
       ts_append.c - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       ts_append.c (273B)
       ---
            1 #include <u.h>
            2 #include <libc.h>
            3 #include "libString.h"
            4 
            5 /* append a char array to a String */
            6 String *
            7 s_append(String *to, char *from)
            8 {
            9         if (to == 0)
           10                 to = s_new();
           11         if (from == 0)
           12                 return to;
           13         for(; *from; from++)
           14                 s_putc(to, *from);
           15         s_terminate(to);
           16         return to;
           17 }