CreateKeyValues Function

Creates a new KeyValues structure. The Handle must always be closed.

KeyValues CreateKeyValues(const char[] name, const char[] firstKey, const char[] firstValue)

Parameters

const char[] name

Name of the root section.

const char[] firstKey

If non-empty, specifies the first key value.

const char[] firstValue

If firstKey is non-empty, specifies the first key's value.

Return Value

A Handle to a new KeyValues structure.