MCPcopy Index your code
hub / github.com/antirez/botlib / cJSON_AddNullToObject

Function cJSON_AddNullToObject

cJSON.c:2075–2085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2073}
2074
2075CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2076{
2077 cJSON *null = cJSON_CreateNull();
2078 if (add_item_to_object(object, name, null, &global_hooks, false))
2079 {
2080 return null;
2081 }
2082
2083 cJSON_Delete(null);
2084 return NULL;
2085}
2086
2087CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2088{

Callers

nothing calls this directly

Calls 3

cJSON_CreateNullFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected