MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_CreateArray

Function cJSON_CreateArray

framework/utils/cJSON.c:2383–2392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2381}
2382
2383CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
2384{
2385 cJSON *item = cJSON_New_Item(&global_hooks);
2386 if(item)
2387 {
2388 item->type=cJSON_Array;
2389 }
2390
2391 return item;
2392}
2393
2394CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2395{

Callers 7

CicadaJSONArrayMethod · 0.85
resetMethod · 0.85
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