GString.str

points to the character data. It may move as text is added. The str field is null-terminated and so can be used as an ordinary C string.

struct GString
char* str;