| 562 | void strbuf_stripspace(struct strbuf *buf, const char *comment_prefix); |
| 563 | |
| 564 | static inline int strbuf_strip_suffix(struct strbuf *sb, const char *suffix) |
| 565 | { |
| 566 | if (strip_suffix_mem(sb->buf, &sb->len, suffix)) { |
| 567 | strbuf_setlen(sb, sb->len); |
| 568 | return 1; |
| 569 | } else |
| 570 | return 0; |
| 571 | } |
| 572 | |
| 573 | /** |
| 574 | * Split str (of length slen) at the specified terminator character. |