stringbuf struct
@file A stringbuf is a resizing, null terminated string buffer. The buffer is reallocated as necessary. In general it is *not* OK to call these functions with a NULL pointer unless stated otherwise. If USE_UTF8 is defined, supports utf8. The stringbuf structure should not be accessed directly. Use the functions below.
Fields
Allocated, but unused space.
Index of the null terminator (and thus the length of the string).
Allocated memory containing the string or NULL for empty.