MCPcopy Index your code
hub / github.com/armink/struct2json / cJSON_New_Item

Function cJSON_New_Item

struct2json/src/cJSON.c:73–78  ·  view source on GitHub ↗

Internal constructor. */

Source from the content-addressed store, hash-verified

71
72/* Internal constructor. */
73static cJSON *cJSON_New_Item(void)
74{
75 cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON));
76 if (node) memset(node,0,sizeof(cJSON));
77 return node;
78}
79
80/* Delete a cJSON structure. */
81void cJSON_Delete(cJSON *c)

Callers 13

cJSON_ParseWithOptsFunction · 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_CreateNumberFunction · 0.85
cJSON_CreateStringFunction · 0.85
cJSON_CreateArrayFunction · 0.85
cJSON_CreateObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected