mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
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.
19 lines
588 B
19 lines
588 B
.TH stralloc_copy 3 |
|
.SH NAME |
|
stralloc_copy \- copy data into a stralloc |
|
.SH SYNTAX |
|
.B #include <stralloc.h> |
|
|
|
int \fBstralloc_copy\fP(stralloc* \fIsato\fR,stralloc* \fIsafrom\fR); |
|
.SH DESCRIPTION |
|
stralloc_copy copies the string stored in \fIsafrom\fR into \fIsa\fR. It |
|
is the same as |
|
\fBstralloc_copyb\fR(&\fIsato\fR, \fIsafrom\fR.s, \fIsafrom\fR.len). |
|
\fIsafrom\fR must already be allocated. |
|
|
|
The data that \fIsa\fR previously contained is overwritten and truncated. |
|
|
|
If stralloc_copy has trouble allocating memory, it returns 0. Otherwise |
|
it returns 1. |
|
.SH "SEE ALSO" |
|
stralloc_copyb(3)
|
|
|