MCPcopy Create free account
hub / github.com/binbyu/Reader / cJSON_AddFalseToObject

Function cJSON_AddFalseToObject

opensrc/cjson/cJSON.c:1989–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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