strbuf: add new call pa_strbuf_putc()

This commit is contained in:
Lennart Poettering 2009-04-29 01:46:51 +02:00
parent 5d39b8d22d
commit 9745483cdd
2 changed files with 8 additions and 0 deletions

View file

@ -113,6 +113,13 @@ void pa_strbuf_puts(pa_strbuf *sb, const char *t) {
pa_strbuf_putsn(sb, t, strlen(t));
}
/* Append a character to the string buffer */
void pa_strbuf_putc(pa_strbuf *sb, char c) {
pa_assert(sb);
pa_strbuf_putsn(sb, &c, 1);
}
/* Append a new chunk to the linked list */
static void append(pa_strbuf *sb, struct chunk *c) {
pa_assert(sb);