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

Function cJSON_AddFalseToObject

cpworker/src/cJSON/cJSON.c:2121–2131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2119}
2120
2121CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2122{
2123 cJSON *false_item = cJSON_CreateFalse();
2124 if (add_item_to_object(object, name, false_item, &global_hooks, false))
2125 {
2126 return false_item;
2127 }
2128
2129 cJSON_Delete(false_item);
2130 return NULL;
2131}
2132
2133CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
2134{

Callers

nothing calls this directly

Calls 3

cJSON_CreateFalseFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected