MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / cJSON_New_Item

Function cJSON_New_Item

eval/LANE_evaluation/lane2d/src/cJSON.c:90–96  ·  view source on GitHub ↗

Internal constructor. */

Source from the content-addressed store, hash-verified

88
89/* Internal constructor. */
90static cJSON *cJSON_New_Item()
91{
92 cJSON* node = (cJSON*) cJSON_malloc(sizeof(cJSON));
93 if (node)
94 memset(node, 0, sizeof(cJSON));
95 return node;
96}
97
98/* Delete a cJSON structure. */
99void cJSON_Delete(cJSON *c)

Callers 13

cJSON_ParseFunction · 0.85
parse_arrayFunction · 0.85
parse_objectFunction · 0.85
create_referenceFunction · 0.85
cJSON_CreateNullFunction · 0.85
cJSON_CreateTrueFunction · 0.85
cJSON_CreateFalseFunction · 0.85
cJSON_CreateBoolFunction · 0.85
cJSON_CreateDoubleFunction · 0.85
cJSON_CreateIntFunction · 0.85
cJSON_CreateStringFunction · 0.85
cJSON_CreateArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected