ReadStringTable Function

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

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

Parameters

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).

Errors

Invalid string table index or string index.