MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / cJSON_GetArrayItem

Function cJSON_GetArrayItem

outofcore/src/cJSON.cpp:496–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494/* Get Array size/item / object item. */
495int cJSON_GetArraySize(cJSON *array) {cJSON *c=array->child;int i=0;while(c)i++,c=c->next;return i;}
496cJSON *cJSON_GetArrayItem(cJSON *array,int item) {cJSON *c=array->child; while (c && item>0) item--,c=c->next; return c;}
497cJSON *cJSON_GetObjectItem(cJSON *object,const char *string) {cJSON *c=object->child; while (c && cJSON_strcasecmp(c->string,string)) c=c->next; return c;}
498
499/* Utility for array list handling. */

Callers 2

loadMetadataFromDiskMethod · 0.85
loadMetadataFromDiskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected