MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_CreateNull

Function cJSON_CreateNull

libapp2sys/src/main/cpp/cjson/cJSON.c:2254–2263  ·  view source on GitHub ↗

Create basic types: */

Source from the content-addressed store, hash-verified

2252
2253/* Create basic types: */
2254CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)
2255{
2256 cJSON *item = cJSON_New_Item(&global_hooks);
2257 if(item)
2258 {
2259 item->type = cJSON_NULL;
2260 }
2261
2262 return item;
2263}
2264
2265CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2266{

Callers 1

cJSON_AddNullToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected