MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / cJSON_New_Item

Function cJSON_New_Item

cJSON.c:241–250  ·  view source on GitHub ↗

Internal constructor. */

Source from the content-addressed store, hash-verified

239
240/* Internal constructor. */
241static cJSON *cJSON_New_Item(const internal_hooks * const hooks)
242{
243 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON));
244 if (node)
245 {
246 memset(node, '\0', sizeof(cJSON));
247 }
248
249 return node;
250}
251
252/* Delete a cJSON structure. */
253CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…