MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / cJSON_GetArraySize

Function cJSON_GetArraySize

eval/LANE_evaluation/lane2d/src/cJSON.c:809–816  ·  view source on GitHub ↗

Get Array size/item / object item. */

Source from the content-addressed store, hash-verified

807
808/* Get Array size/item / object item. */
809int cJSON_GetArraySize(cJSON *array)
810{
811 cJSON *c = array->child;
812 int i = 0;
813 while (c)
814 i++, c = c->next;
815 return i;
816}
817cJSON *cJSON_GetArrayItem(cJSON *array, int item)
818{
819 cJSON *c = array->child;

Callers 7

GetArraySizeMethod · 0.85
AddMethod · 0.85
AddWithMoveMethod · 0.85
AddNullMethod · 0.85
AddAsFirstMethod · 0.85
AddAsFirstWithMoveMethod · 0.85
AddNullAsFirstMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected