1 /* 2 * reimplementation of Daniel Bernstein's unix library. 3 * placed in the public domain by Uwe Ohse, uwe@ohse.de. 4 */ 5 #include "stralloc.h" 6 #include "gen_alloci.h" 7 8 int stralloc_ready(stralloc * x,unsigned int n)9stralloc_ready(stralloc *x,unsigned int n) 10 { 11 return gen_alloc_ready( 12 &x->s, 13 sizeof(*x->s), 14 &x->len, 15 &x->a, 16 n); 17 } 18