MCPcopy Index your code
hub / github.com/antirez/botlib / cJSON_CreateArray

Function cJSON_CreateArray

cJSON.c:2513–2522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2511}
2512
2513CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
2514{
2515 cJSON *item = cJSON_New_Item(&global_hooks);
2516 if(item)
2517 {
2518 item->type=cJSON_Array;
2519 }
2520
2521 return item;
2522}
2523
2524CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2525{

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