* Add a single character to the buffer. */
| 230 | * Add a single character to the buffer. |
| 231 | */ |
| 232 | static inline void strbuf_addch(struct strbuf *sb, int c) |
| 233 | { |
| 234 | if (!strbuf_avail(sb)) |
| 235 | strbuf_grow(sb, 1); |
| 236 | sb->buf[sb->len++] = c; |
| 237 | sb->buf[sb->len] = '\0'; |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * Add a character the specified number of times to the buffer. |