MCPcopy Index your code
hub / github.com/binbyu/Reader / cJSON_CreateArray

Function cJSON_CreateArray

opensrc/cjson/cJSON.c:2385–2394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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