Skip to content
KvConfigCompare

KvConfigCompare

KvConfigCompare

Description

Compare two Str values for config key/value equality.

Parameters

Name Direction Description
lhs in Pointer to left Str.
rhs in Pointer to right Str.

Success

0 if equal, negative if lhs < rhs, positive if lhs > rhs.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    i32 KvConfigCompare(const void *lhs, const void *rhs) {
        const Str *a   = lhs;
        const Str *b   = rhs;
        MapInitWithDeepCopyAndValueCompare(                                                                                \
            KvConfigHash,                                                                                                  \
            KvConfigCompare,                                                                                               \
            KvConfigCompare,                                                                                               \
            StrInitCopy,                                                                                                   \
            KvConfigHash,                                                                                                  \
            KvConfigCompare,                                                                                               \
            KvConfigCompare,                                                                                               \
            StrInitCopy,                                                                                                   \
            StrDeinit,                                                                                                     \
Last updated on