strbuf: added strbuf_setlen
This commit is contained in:
parent
3ed80a13ae
commit
6538fd9369
4 changed files with 45 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Reference in a new issue