| 30 | #include "strbuf.h" |
| 31 | |
| 32 | static void die(const char *fmt, ...) |
| 33 | { |
| 34 | va_list arg; |
| 35 | |
| 36 | va_start(arg, fmt); |
| 37 | vfprintf(stderr, fmt, arg); |
| 38 | va_end(arg); |
| 39 | fprintf(stderr, "\n"); |
| 40 | |
| 41 | exit(-1); |
| 42 | } |
| 43 | |
| 44 | void strbuf_init(strbuf_t *s, int len) |
| 45 | { |
no outgoing calls
no test coverage detected