| 66 | } |
| 67 | |
| 68 | strbuf_t *strbuf_new(int len) |
| 69 | { |
| 70 | strbuf_t *s; |
| 71 | |
| 72 | s = malloc(sizeof(strbuf_t)); |
| 73 | if (!s) |
| 74 | die("Out of memory"); |
| 75 | |
| 76 | strbuf_init(s, len); |
| 77 | |
| 78 | /* Dynamic strbuf allocation / deallocation */ |
| 79 | s->dynamic = 1; |
| 80 | |
| 81 | return s; |
| 82 | } |
| 83 | |
| 84 | void strbuf_set_increment(strbuf_t *s, int increment) |
| 85 | { |
no test coverage detected