| 157 | } |
| 158 | |
| 159 | static void append_char(char *buf, size_t bufsz, size_t *pos, char ch) { |
| 160 | if (*pos < bufsz - 1) { |
| 161 | buf[*pos] = ch; |
| 162 | } |
| 163 | (*pos)++; |
| 164 | } |
| 165 | |
| 166 | static void append_raw(char *buf, size_t bufsz, size_t *pos, const char *s) { |
| 167 | if (!s) { |
no outgoing calls
no test coverage detected