kw_update_except()

kw_update_except()#

Updates the dictionary kw with key-value pairs from other, excluding keys specified in except_keys.

Prototype

void kw_update_except(
    hgobj      gobj,
    json_t    *kw,          // not owned
    json_t    *other,       // owned
    const char **except_keys
);

Parameters

Key

Type

Description

gobj

hgobj

Handle to the gobj (generic object) system.

kw

json_t *

The target JSON dictionary to be updated. This parameter is not owned by the function.

other

json_t *

The source JSON dictionary containing key-value pairs to update kw. This parameter is owned by the function.

except_keys

const char **

A NULL-terminated array of keys that should be excluded from the update.


Return Value

This function does not return a value.

Notes

Only the first level of kw is updated. Keys in except_keys are ignored during the update.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples