MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / cJSON_GetArraySize

Function cJSON_GetArraySize

common/map_sdk/transmission/src/cJSON.cpp:655–660  ·  view source on GitHub ↗

Get Array size/item / object item. */

Source from the content-addressed store, hash-verified

653
654/* Get Array size/item / object item. */
655int cJSON_GetArraySize(cJSON *array) {
656 cJSON *c = array->child;
657 int i = 0;
658 while (c) i++, c = c->next;
659 return i;
660}
661cJSON *cJSON_GetArrayItem(cJSON *array, int item) {
662 cJSON *c = array->child;
663 while (c && item > 0) item--, c = c->next;

Callers 3

GetArraySizeMethod · 0.85
AddMethod · 0.85
AddAsFirstMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected