MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_CreateArray

Function cJSON_CreateArray

libapp2sys/src/main/cpp/cjson/cJSON.c:2391–2400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2389}
2390
2391CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
2392{
2393 cJSON *item = cJSON_New_Item(&global_hooks);
2394 if(item)
2395 {
2396 item->type=cJSON_Array;
2397 }
2398
2399 return item;
2400}
2401
2402CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2403{

Callers 11

checkPermissionMethod · 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