MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / cJSON_AddNullToObject

Function cJSON_AddNullToObject

cJSON.c:2135–2145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2133}
2134
2135CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2136{
2137 cJSON *null = cJSON_CreateNull();
2138 if (add_item_to_object(object, name, null, &global_hooks, false))
2139 {
2140 return null;
2141 }
2142
2143 cJSON_Delete(null);
2144 return NULL;
2145}
2146
2147CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2148{

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…