MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_CreateArrayReference

Function cJSON_CreateArrayReference

cpworker/src/cJSON/cJSON.c:2518–2526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2516}
2517
2518CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
2519 cJSON *item = cJSON_New_Item(&global_hooks);
2520 if (item != NULL) {
2521 item->type = cJSON_Array | cJSON_IsReference;
2522 item->child = (cJSON*)cast_away_const(child);
2523 }
2524
2525 return item;
2526}
2527
2528CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)
2529{

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected