summaryrefslogtreecommitdiffstats
path: root/src/strbuf.h
blob: 0e9bb5e36fc098b011e483a8e5542f73c3c41e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef foostrbufhfoo
#define foostrbufhfoo

struct pa_strbuf;

struct pa_strbuf *pa_strbuf_new(void);
void pa_strbuf_free(struct pa_strbuf *sb);
char *pa_strbuf_tostring(struct pa_strbuf *sb);
char *pa_strbuf_tostring_free(struct pa_strbuf *sb);

int pa_strbuf_printf(struct pa_strbuf *sb, const char *format, ...) __attribute__ ((format (printf, 2, 3)));;
void pa_strbuf_puts(struct pa_strbuf *sb, const char *t);
void pa_strbuf_putsn(struct pa_strbuf *sb, const char *t, size_t m);

#endif