strbuf: docs and const pointers.
This commit is contained in:
parent
850df3fc87
commit
ccdad9c6aa
3 changed files with 17 additions and 5 deletions
|
|
@ -28,6 +28,14 @@ strbuf_append():
|
|||
Like strncat() this function will append the buffer with the contents of 'str'
|
||||
and will always copy exactly 'len' bytes. (if memory can be obtained ofcourse)
|
||||
|
||||
strbuf_append_str():
|
||||
|
||||
Will add the C-string to the end of ->buf
|
||||
|
||||
strbuf_append_ch():
|
||||
|
||||
Adds one character 'ch' to the end of ->buf
|
||||
|
||||
strbuf_reduce():
|
||||
|
||||
Will reduce ->buf by 'len' bytes from the end, Note that this don't shrink the memory block
|
||||
|
|
@ -43,6 +51,10 @@ strbuf_rev():
|
|||
|
||||
Reverses the ->buf string.
|
||||
|
||||
strbuf_squeeze():
|
||||
|
||||
Squeezes "together" sequences of 'ch' into one character.
|
||||
|
||||
strbuf_release():
|
||||
|
||||
This function should be used to detach the ->buf member from the strbuf_t structure.
|
||||
|
|
|
|||
Reference in a new issue