MCPcopy Create free account
hub / github.com/binbyu/Reader / cJSON_New_Item

Function cJSON_New_Item

opensrc/cjson/cJSON.c:204–213  ·  view source on GitHub ↗

Internal constructor. */

Source from the content-addressed store, hash-verified

202
203/* Internal constructor. */
204static cJSON *cJSON_New_Item(const internal_hooks * const hooks)
205{
206 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON));
207 if (node)
208 {
209 memset(node, '\0', sizeof(cJSON));
210 }
211
212 return node;
213}
214
215/* Delete a cJSON structure. */
216CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected