extend API To read line/token to stralloc to allow clearing the

stralloc first.
  add stralloc_zero to clear a stralloc
This commit is contained in:
leitner
2004-11-25 20:07:31 +00:00
parent dd66bcb7c3
commit 82b0bb6f39
13 changed files with 163 additions and 2 deletions

13
stralloc/stralloc_zero.3 Normal file
View File

@@ -0,0 +1,13 @@
.TH stralloc_zero 3
.SH NAME
stralloc_zero \- set length of stralloc to 0
.SH SYNTAX
.B #include <stralloc.h>
int \fBstralloc_zero\fP(stralloc* \fIsa\fR);
.SH DESCRIPTION
stralloc_zero sets the length of the stralloc to 0.
It is a shortcut for stralloc_copys(\fIsa\fR,"").
.SH "SEE ALSO"
stralloc_copys(3)