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

Function cJSON_CreateArrayReference

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

Source from the content-addressed store, hash-verified

2491}
2492
2493CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
2494 cJSON *item = cJSON_New_Item(&global_hooks);
2495 if (item != NULL) {
2496 item->type = cJSON_Array | cJSON_IsReference;
2497 item->child = (cJSON*)cast_away_const(child);
2498 }
2499
2500 return item;
2501}
2502
2503CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)
2504{

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected