aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/strbuf.h b/strbuf.h
index 57946cc8..7f936a9e 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -23,14 +23,10 @@ typedef struct {
} strbuf;
/*
- * Init strbuf to size of 0
- * Doesnt't call malloc.
+ * Init strbuf to size of 10
*/
INIT_F(strbuf);
-/* Constructor */
-INIT_F(strbuf, size_t len);
-
/*
* Like realloc, but for strbuf
*/
@@ -108,4 +104,6 @@ FMT_F(strbuf);
int SIZE(strbuf)(strbuf*);
+int strbuf_load(strbuf* self, const char* str);
+
#endif /* STRBUF_H */