MCPcopy Create free account
hub / github.com/Wassimulator/CactusViewer / cJSON_CreateArray

Function cJSON_CreateArray

src/cJSON.c:2522–2531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2520}
2521
2522CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
2523{
2524 cJSON *item = cJSON_New_Item(&global_hooks);
2525 if(item)
2526 {
2527 item->type=cJSON_Array;
2528 }
2529
2530 return item;
2531}
2532
2533CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2534{

Callers 6

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