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

Function cJSON_AddNullToObject

src/cjson.c:2090–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2088}
2089
2090CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2091{
2092 cJSON *null = cJSON_CreateNull();
2093 if (add_item_to_object(object, name, null, &global_hooks, false))
2094 {
2095 return null;
2096 }
2097
2098 cJSON_Delete(null);
2099 return NULL;
2100}
2101
2102CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2103{

Callers

nothing calls this directly

Calls 3

cJSON_CreateNullFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…