gbuffer_append_char()
#
Appends a single character to the gbuffer_t
buffer, expanding it if necessary.
Prototype
size_t gbuffer_append_char(
gbuffer_t *gbuf,
char c
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the |
|
|
The character to append to the buffer. |
Return Value
Returns the number of bytes written, which is always 1 unless an error occurs.
Notes
If the buffer does not have enough space, it will attempt to expand before appending the character.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples