MCPcopy Create free account
hub / github.com/ByConity/ByConity / cJSON_CreateArray

Function cJSON_CreateArray

contrib/cJSON/cJSON.cpp:2434–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2432}
2433
2434CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
2435{
2436 cJSON *item = cJSON_New_Item(&global_hooks);
2437 if(item)
2438 {
2439 item->type=cJSON_Array;
2440 }
2441
2442 return item;
2443}
2444
2445CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2446{

Callers 5

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