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

Function cJSON_AddItemReferenceToObject

cpworker/src/cJSON/cJSON.c:2087–2095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2085}
2086
2087CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
2088{
2089 if ((object == NULL) || (string == NULL))
2090 {
2091 return false;
2092 }
2093
2094 return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
2095}
2096
2097CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2098{

Callers

nothing calls this directly

Calls 2

add_item_to_objectFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected