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

struct strbuf;

struct strbuf *strbuf_new(void);
void strbuf_free(struct strbuf *sb);
char *strbuf_tostring(struct strbuf *sb);
char *strbuf_tostring_free(struct strbuf *sb);

int strbuf_printf(struct strbuf *sb, const char *format, ...);
void strbuf_puts(struct strbuf *sb, const char *t);

#endif