From d5a5ce02552c4d58c34226eaa0b9c71743630a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 21 Jan 2019 11:32:33 +0100 Subject: Bunch of renames + macros. --- strbuf.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'strbuf.h') diff --git a/strbuf.h b/strbuf.h index d21fa117..1a49ca5d 100644 --- a/strbuf.h +++ b/strbuf.h @@ -17,10 +17,16 @@ typedef struct { * TODO Check memmory allocation for last +1 byte for null. */ +/* + * 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 -- cgit v1.2.3