MCPcopy Create free account
hub / github.com/binbyu/Reader / cJSON_CreateNull

Function cJSON_CreateNull

opensrc/cjson/cJSON.c:2248–2257  ·  view source on GitHub ↗

Create basic types: */

Source from the content-addressed store, hash-verified

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

Callers 1

cJSON_AddNullToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected