KvGetSectionName Function

Retrieves the current section name.

bool KvGetSectionName(Handle kv, char[] section, int maxlength)

Parameters

Handle kv

KeyValues Handle.

char[] section

Buffer to store the section name.

int maxlength

Maximum length of the name buffer.

Return Value

True on success, false on failure.

Errors

Invalid Handle.