aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:32:33 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:32:33 +0100
commitd5a5ce02552c4d58c34226eaa0b9c71743630a32 (patch)
treecd73d4fbcf95913da90a2195e99b7cb369f16b17 /strbuf.h
parentAdd closedir. (diff)
downloadcalp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.gz
calp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.xz
Bunch of renames + macros.
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/strbuf.h b/strbuf.h
index d21fa117..1a49ca5d 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -18,9 +18,15 @@ typedef struct {
*/
/*
+ * Init string to size of 0
+ * Doesnt't call malloc.
+ */
+int strbuf_init_0(string* str);
+
+/*
* Constructor
*/
-int init_string(string* str, size_t len);
+int strbuf_init_1(string* str, size_t len);
/*
* Like realloc, but for strbuf