ReadStringTable Function

Retrieves the string at a given index of a string table.

int ReadStringTable(int tableidx, int stringidx, char[] str, int maxlength)


int tableidx

A string table index.

int stringidx

A string index.

char[] str

Buffer to store the string value.

int maxlength

Maximum length of string buffer.

Return Value

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


Invalid string table index or string index.