From ebecdcd9cd468e265c071e3a09d6db545e2f8b2f Mon Sep 17 00:00:00 2001 From: Felix von Leitner Date: Tue, 22 Oct 2002 13:24:34 +0000 Subject: [PATCH] add stralloc_init prototype --- stralloc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stralloc.h b/stralloc.h index 715f404..49bf2ea 100644 --- a/stralloc.h +++ b/stralloc.h @@ -13,6 +13,11 @@ typedef struct stralloc { unsigned int a; } stralloc; +/* stralloc_init will initialize a stralloc. + * Previously allocated memory will not be freed; use stralloc_free for + * that. To assign an empty string, use stralloc_copys(sa,""). */ +extern void stralloc_init(stralloc* sa); + /* stralloc_ready makes sure that sa has enough space allocated to hold * len bytes: If sa is not allocated, stralloc_ready allocates at least * len bytes of space, and returns 1. If sa is already allocated, but