|
|
@ -12,5 +12,8 @@ stralloc_ready makes sure that \fIsa\fR has enough space allocated to hold
|
|
|
|
not enough to hold \fIlen\fR bytes, stralloc_ready allocates at least \fIlen\fR
|
|
|
|
not enough to hold \fIlen\fR bytes, stralloc_ready allocates at least \fIlen\fR
|
|
|
|
bytes of space, copies the old string into the new space, frees the
|
|
|
|
bytes of space, copies the old string into the new space, frees the
|
|
|
|
old space, and returns 1. Note that this changes \fIsa\fR.s.
|
|
|
|
old space, and returns 1. Note that this changes \fIsa\fR.s.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If stralloc_ready runs out of memory, it leaves \fIsa\fR alone and
|
|
|
|
|
|
|
|
returns 0.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
stralloc_readyplus(3)
|
|
|
|
stralloc_readyplus(3)
|
|
|
|