add stralloc_init prototype
This commit is contained in:
parent
4435892da8
commit
cf256445f0
@ -13,6 +13,11 @@ typedef struct stralloc {
|
|||||||
unsigned int a;
|
unsigned int a;
|
||||||
} stralloc;
|
} 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
|
/* 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: If sa is not allocated, stralloc_ready allocates at least
|
||||||
* len bytes of space, and returns 1. If sa is already allocated, but
|
* len bytes of space, and returns 1. If sa is already allocated, but
|
||||||
|
Loading…
x
Reference in New Issue
Block a user