sgs_InitStringAlloc [function]

char* sgs_InitStringAlloc( sgs_Context* C, sgs_Variable* var, sgs_SizeVal size )

Set an uninitialized string buffer to a variable, returns pointer to buffer.

Created string is a valid resource in terms of acquisition/release but not hashed and internalized yet, thus it cannot be used in indexing/comparison functions until it's finalized, see sgs_FinalizeStringAlloc(P).