Lines Matching refs:s
84 gs.s = xmalloc(sizeof(char) * 64); in str_new()
87 strcpy(gs.s, "\0"); in str_new()
94 if (gs->s) in str_free()
95 free(gs->s); in str_free()
96 gs->s = NULL; in str_free()
101 void str_append(struct gstr *gs, const char *s) in str_append() argument
104 if (s) { in str_append()
105 l = strlen(gs->s) + strlen(s) + 1; in str_append()
107 gs->s = realloc(gs->s, l); in str_append()
110 strcat(gs->s, s); in str_append()
118 char s[10000]; /* big enough... */ in str_printf() local
120 vsnprintf(s, sizeof(s), fmt, ap); in str_printf()
121 str_append(gs, s); in str_printf()
128 return gs->s; in str_get()