MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / cJSON_CreateNull

Function cJSON_CreateNull

TheForceEngine/TFE_System/cJSON.c:2395–2404  ·  view source on GitHub ↗

Create basic types: */

Source from the content-addressed store, hash-verified

2393
2394/* Create basic types: */
2395CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)
2396{
2397 cJSON *item = cJSON_New_Item(&global_hooks);
2398 if(item)
2399 {
2400 item->type = cJSON_NULL;
2401 }
2402
2403 return item;
2404}
2405
2406CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2407{

Callers 1

cJSON_AddNullToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected