MCPcopy Create free account
hub / github.com/SVF-tools/SVF / cJSON_AddNullToObject

Function cJSON_AddNullToObject

svf/lib/Util/cJSON.cpp:2085–2095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2083}
2084
2085CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2086{
2087 cJSON *null = cJSON_CreateNull();
2088 if (add_item_to_object(object, name, null, &global_hooks, false))
2089 {
2090 return null;
2091 }
2092
2093 cJSON_Delete(null);
2094 return NULL;
2095}
2096
2097CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2098{

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