Skip to content

MTY_HashSetInt

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Set a value in a hash by integer key.

void *MTY_HashSetInt(
    MTY_Hash * ctx,
    int64_t    key,
    void *     value
);

Parameters

ctx (MTY_Hash *)

An MTY_Hash.

key (int64_t)

Integer 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