Allocate initial growable string */
| 30 | |
| 31 | /* Allocate initial growable string */ |
| 32 | struct gstr str_new(void) |
| 33 | { |
| 34 | struct gstr gs; |
| 35 | gs.s = xmalloc(sizeof(char) * 64); |
| 36 | gs.len = 64; |
| 37 | gs.max_width = 0; |
| 38 | strcpy(gs.s, "\0"); |
| 39 | return gs; |
| 40 | } |
| 41 | |
| 42 | /* Free storage for growable string */ |
| 43 | void str_free(struct gstr *gs) |
no test coverage detected