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

Function cJSON_AddFalseToObject

cJSON.c:2159–2169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2157}
2158
2159CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2160{
2161 cJSON *false_item = cJSON_CreateFalse();
2162 if (add_item_to_object(object, name, false_item, &global_hooks, false))
2163 {
2164 return false_item;
2165 }
2166
2167 cJSON_Delete(false_item);
2168 return NULL;
2169}
2170
2171CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
2172{

Calls 3

cJSON_CreateFalseFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by 1

create_objectsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…