aboutsummaryrefslogtreecommitdiffstats
path: root/xstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'xstring.h')
-rw-r--r--xstring.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/xstring.h b/xstring.h
index 4a33e99..be11600 100644
--- a/xstring.h
+++ b/xstring.h
@@ -9,8 +9,9 @@ typedef struct tag_string {
int capacity;
} string;
-string *string_alloc(const char *text);
-string *string_nalloc(const char *text, size_t text_len);
+string *string_alloc(string *str, const char *text);
+string *string_nalloc(string *str, const char *text,
+ size_t text_len);
void string_release(string *str);
void string_reset(string *str);
void string_addch(string *str, int ch);