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

Function cJSON_CreateNull

framework/utils/cJSON.c:2246–2255  ·  view source on GitHub ↗

Create basic types: */

Source from the content-addressed store, hash-verified

2244
2245/* Create basic types: */
2246CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)
2247{
2248 cJSON *item = cJSON_New_Item(&global_hooks);
2249 if(item)
2250 {
2251 item->type = cJSON_NULL;
2252 }
2253
2254 return item;
2255}
2256
2257CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2258{

Callers 1

cJSON_AddNullToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected