MCPcopy Create free account
hub / github.com/acl-dev/acl / cJSON_GetObjectItem

Function cJSON_GetObjectItem

lib_acl/samples/json/json5/cJSON.cpp:663–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661int cJSON_GetArraySize(cJSON *array) {cJSON *c=array->child;int i=0;while(c)i++,c=c->next;return i;}
662cJSON *cJSON_GetArrayItem(cJSON *array,int item) {cJSON *c=array->child; while (c && item>0) item--,c=c->next; return c;}
663cJSON *cJSON_GetObjectItem(cJSON *object,const char *string) {cJSON *c=object->child; while (c && cJSON_strcasecmp(c->string,string)) c=c->next; return c;}
664
665/* Utility for array list handling. */
666static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;}

Callers

nothing calls this directly

Calls 1

cJSON_strcasecmpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…