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

Function cJSON_CreateArray

cpworker/src/cJSON/cJSON.c:2545–2554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2543}
2544
2545CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
2546{
2547 cJSON *item = cJSON_New_Item(&global_hooks);
2548 if(item)
2549 {
2550 item->type=cJSON_Array;
2551 }
2552
2553 return item;
2554}
2555
2556CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2557{

Callers 7

cJSON_AddArrayToObjectFunction · 0.85
cJSON_CreateIntArrayFunction · 0.85
cJSON_CreateFloatArrayFunction · 0.85
cJSON_CreateDoubleArrayFunction · 0.85
cJSON_CreateStringArrayFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected