Archived
1
0
Fork 0

strbuf: added strbuf_setlen

This commit is contained in:
Henrik Hautakoski 2011-02-04 16:27:39 +01:00
parent 3ed80a13ae
commit 6538fd9369
4 changed files with 45 additions and 0 deletions

View file

@ -24,6 +24,12 @@ NOTE: ->alloc_size and ->len should *not* be messed with, only `strbuf_*` functi
Functions
~~~~~~~~~
`strbuf_setlen()`::
Sets the length of the buffer. +
This function will not allocate memory, it only sets ->len and
assure that the string is null-terminated at the new position.
`strbuf_append()`::
This function will append the buffer with the contents of 'ptr'