MCPcopy Index your code
hub / github.com/armink/struct2json / cJSON_GetObjectItem

Function cJSON_GetObjectItem

struct2json/src/cJSON.c:664–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662int cJSON_GetArraySize(cJSON *array) {cJSON *c=array->child;int i=0;while(c)i++,c=c->next;return i;}
663cJSON *cJSON_GetArrayItem(cJSON *array,int item) {cJSON *c=array->child; while (c && item>0) item--,c=c->next; return c;}
664cJSON *cJSON_GetObjectItem(cJSON *object,const char *string) {cJSON *c=object->child; while (c && cJSON_strcasecmp(c->string,string)) c=c->next; return c;}
665int cJSON_HasObjectItem(cJSON *object,const char *string) {
666 cJSON *c=object->child;
667 while (c )

Callers 1

json_to_structFunction · 0.85

Calls 1

cJSON_strcasecmpFunction · 0.85

Tested by

no test coverage detected