gbuffer_reset_wr()
#
Resets the write pointer of the given gbuffer_t
instance, effectively clearing its contents.
Prototype
void gbuffer_reset_wr(gbuffer_t *gbuf);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the |
Return Value
This function does not return a value.
Notes
This function sets both the write (tail
) and read (curp
) pointers to zero, effectively clearing the buffer. A null terminator is placed at the beginning of the buffer to ensure it remains a valid C string.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples