GetStringTableData Function

Retrieves the user data associated with a given string index.

int GetStringTableData(int tableidx, int stringidx, char[] userdata, int maxlength)

Parameters

int tableidx

A string table index.

int stringidx

A string index.

char[] userdata

Buffer to store the user data. This will be set to "" if there is no user data.

int maxlength

Maximum length of string buffer.

Return Value

Number of bytes written to the buffer (UTF-8 safe).

Errors

Invalid string table index or string index.