Skip to content

MTY_HashSet

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Set a value in a hash by string key.

void *MTY_HashSet(
    MTY_Hash *   ctx,
    const char * key,
    void *       value
);

Parameters

ctx (MTY_Hash *)

An MTY_Hash.

key (const char *)

String key to set.

value (void *)

Value to set associated with key.

Return value

void *

If key already exists, the previous value is returned, otherwise NULL is returned.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Struct

Clone this wiki locally