MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_AddItemReferenceToArray

Function cJSON_AddItemReferenceToArray

cpworker/src/cJSON/cJSON.c:2077–2085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2075}
2076
2077CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
2078{
2079 if (array == NULL)
2080 {
2081 return false;
2082 }
2083
2084 return add_item_to_array(array, create_reference(item, &global_hooks));
2085}
2086
2087CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
2088{

Callers 1

cJSON.hFile · 0.85

Calls 2

add_item_to_arrayFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected