You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
468 B

22 years ago
.TH stralloc_copyb 3
stralloc_copyb \- copy data into a stralloc
.B #include <stralloc.h>
extern int \fBstralloc_copyb\fP(stralloc* \fIsa\fR,const char* \fIbuf\fR,unsigned int \fIlen\fR);
stralloc_copyb makes sure that \fIsa\fR has enough space allocated to hold
\fIlen\fR bytes. Then it copies the first \fIlen\fR bytes from
\fIbuf\fR into the stralloc.
The data that \fIsa\fR previously contained is overwritten and truncated.