MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_CreateNull

Function cJSON_CreateNull

general/package/xmdp/src/cjson/cJSON.c:2383–2392  ·  view source on GitHub ↗

Create basic types: */

Source from the content-addressed store, hash-verified

2381
2382/* Create basic types: */
2383CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)
2384{
2385 cJSON *item = cJSON_New_Item(&global_hooks);
2386 if(item)
2387 {
2388 item->type = cJSON_NULL;
2389 }
2390
2391 return item;
2392}
2393
2394CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2395{

Callers 1

cJSON_AddNullToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected