Skip to content
KvConfigReadKey

KvConfigReadKey

KvConfigReadKey

Description

Read a config key from the current line.

Keys end before = / : / newline and are trimmed of surrounding whitespace.

Parameters

Name Direction Description
si in Iterator at start of key.
key out Parsed key.

Success

Returns iterator advanced to separator or following whitespace.

Failure

Returns original iterator on invalid key.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    StrIter KvConfigReadKey(StrIter si, Str *key) {
        StrIter saved_si = si;
        }
    
        si = KvConfigReadKey(si, key);
        if (si.pos == saved_si.pos) {
            return saved_si;
Last updated on