MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / cJSON_GetArraySize

Function cJSON_GetArraySize

cJSON.c:803–810  ·  view source on GitHub ↗

Get Array size/item / object item. */

Source from the content-addressed store, hash-verified

801
802/* Get Array size/item / object item. */
803int cJSON_GetArraySize(cJSON *array)
804{
805 cJSON *c = array->child;
806 int i = 0;
807 while (c)
808 i++, c = c->next;
809 return i;
810}
811cJSON *cJSON_GetArrayItem(cJSON *array, int item)
812{
813 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