MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / cJSON_CreateNull

Function cJSON_CreateNull

outofcore/src/cJSON.cpp:543–543  ·  view source on GitHub ↗

Create basic types: */

Source from the content-addressed store, hash-verified

541
542/* Create basic types: */
543cJSON *cJSON_CreateNull() {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_NULL;return item;}
544cJSON *cJSON_CreateTrue() {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_True;return item;}
545cJSON *cJSON_CreateFalse() {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_False;return item;}
546cJSON *cJSON_CreateBool(int b) {cJSON *item=cJSON_New_Item();if(item)item->type=b?cJSON_True:cJSON_False;return item;}

Callers 1

cJSON.hFile · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected