remove externs
parent
5589008c77
commit
8c8b5262c5
@ -0,0 +1,15 @@
|
|||||||
|
.TH stralloc_init 3
|
||||||
|
.SH NAME
|
||||||
|
stralloc_init \- initialize a stralloc
|
||||||
|
.SH SYNTAX
|
||||||
|
.B #include <stralloc.h>
|
||||||
|
|
||||||
|
int \fBstralloc_init\fP(stralloc* \fIsa\fR);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
stralloc_init initializes a stralloc to the empty string.
|
||||||
|
|
||||||
|
It does not free any memory previously associated with a stralloc. Use
|
||||||
|
stralloc_free(3) for that. If you just want to empty a stralloc, use
|
||||||
|
stralloc_copys(sa,"") instead.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
stralloc_free(3), stralloc_copys(3)
|
@ -0,0 +1,6 @@
|
|||||||
|
#include "stralloc.h"
|
||||||
|
|
||||||
|
void stralloc_init(stralloc* sa) {
|
||||||
|
sa->s=0;
|
||||||
|
sa->len=sa->a=0;
|
||||||
|
}
|
Loading…
Reference in New Issue