MCPcopy Create free account
hub / github.com/esnet/iperf / cJSON_AddItemReferenceToArray

Function cJSON_AddItemReferenceToArray

src/cjson.c:2070–2078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2068}
2069
2070CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
2071{
2072 if (array == NULL)
2073 {
2074 return false;
2075 }
2076
2077 return add_item_to_array(array, create_reference(item, &global_hooks));
2078}
2079
2080CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
2081{

Callers 1

cjson.hFile · 0.85

Calls 2

add_item_to_arrayFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…