Lines Matching refs:s
52 gs.s = xmalloc(sizeof(char) * 64); in str_new()
55 strcpy(gs.s, "\0"); in str_new()
62 free(gs->s); in str_free()
63 gs->s = NULL; in str_free()
68 void str_append(struct gstr *gs, const char *s) in str_append() argument
71 if (s) { in str_append()
72 l = strlen(gs->s) + strlen(s) + 1; in str_append()
74 gs->s = xrealloc(gs->s, l); in str_append()
77 strcat(gs->s, s); in str_append()
85 char s[10000]; /* big enough... */ in str_printf() local
87 vsnprintf(s, sizeof(s), fmt, ap); in str_printf()
88 str_append(gs, s); in str_printf()
95 return gs->s; in str_get()