MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_New_Item

Function cJSON_New_Item

general/package/xmdp/src/cjson/cJSON.c:237–246  ·  view source on GitHub ↗

Internal constructor. */

Source from the content-addressed store, hash-verified

235
236/* Internal constructor. */
237static cJSON *cJSON_New_Item(const internal_hooks * const hooks)
238{
239 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON));
240 if (node)
241 {
242 memset(node, '\0', sizeof(cJSON));
243 }
244
245 return node;
246}
247
248/* Delete a cJSON structure. */
249CJSON_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