Skip to content

MTY_HashGetNextKey

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Iterate through string key/value pairs in a hash.

bool MTY_HashGetNextKey(
    MTY_Hash *    ctx,
    uint64_t *    iter,
    const char ** key
);

Parameters

ctx (MTY_Hash *)

An MTY_Hash.

iter (uint64_t *)

Iterator that keeps track of the position in the hash. Set this to 0 before the fist call to this function.

key (const char **)

Reference to the next string key in the hash.

Return value

bool

Returns true if there are more keys available, otherwise false.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Struct

Clone this wiki locally