MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_AddFalseToObject

Function cJSON_AddFalseToObject

framework/utils/cJSON.c:1987–1997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1985}
1986
1987CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
1988{
1989cJSON *false_item = cJSON_CreateFalse();
1990if (add_item_to_object(object, name, false_item, &global_hooks, false))
1991{
1992return false_item;
1993}
1994
1995cJSON_Delete(false_item);
1996return NULL;
1997}
1998
1999CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
2000{

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