URI:
       ts_putc.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_putc.c (208B)
       ---
            1 #include <u.h>
            2 #include <libc.h>
            3 #include "libString.h"
            4 
            5 void
            6 s_putc(String *s, int c)
            7 {
            8         if(s->ref > 1)
            9                 sysfatal("can't s_putc a shared string");
           10         if (s->ptr >= s->end)
           11                 s_grow(s, 2);
           12         *(s->ptr)++ = c;
           13 }