Archived
1
0
Fork 0

strbuf: added strbuf_avail and strbuf_appendf.

This commit is contained in:
Henrik Hautakoski 2011-02-04 17:18:21 +01:00
parent 6538fd9369
commit e67e03aceb
5 changed files with 59 additions and 1 deletions

View file

@ -39,6 +39,17 @@ void test_setlen() {
strbuf_free(&b);
}
void test_appendf() {
strbuf_t b = STRBUF_INIT;
strbuf_appendf(&b, "%s %i", "string", 32);
print_strbuf(&b);
strbuf_free(&b);
}
void test_release() {
strbuf_t b = STRBUF_INIT;
@ -216,6 +227,7 @@ void test_free_empty() {
int main() {
test_appendf();
test_release_empty();
test_release();
test_setlen();