MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_CreateArray

Function cJSON_CreateArray

general/package/xmdp/src/cjson/cJSON.c:2520–2529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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