MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / cJSON_New_Item

Function cJSON_New_Item

cJSON.c:92–98  ·  view source on GitHub ↗

Internal constructor. */

Source from the content-addressed store, hash-verified

90
91/* Internal constructor. */
92static cJSON *cJSON_New_Item()
93{
94 cJSON* node = (cJSON*) cJSON_malloc(sizeof(cJSON));
95 if (node)
96 memset(node, 0, sizeof(cJSON));
97 return node;
98}
99
100/* Delete a cJSON structure. */
101void 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