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

Function cJSON_CreateNull

contrib/cJSON/cJSON.cpp:2262–2271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2260
2261/* Create basic types: */
2262CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)
2263{
2264 cJSON *item = cJSON_New_Item(&global_hooks);
2265 if(item)
2266 {
2267 item->type = cJSON_NULL;
2268 }
2269
2270 return item;
2271}
2272
2273CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2274{

Callers 1

cJSON_AddNullToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected