MCPcopy Index your code
hub / github.com/antirez/botlib / cJSON_CreateArrayReference

Function cJSON_CreateArrayReference

cJSON.c:2486–2494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2484}
2485
2486CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
2487 cJSON *item = cJSON_New_Item(&global_hooks);
2488 if (item != NULL) {
2489 item->type = cJSON_Array | cJSON_IsReference;
2490 item->child = (cJSON*)cast_away_const(child);
2491 }
2492
2493 return item;
2494}
2495
2496CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)
2497{

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected