MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / cJSON_GetArrayItem

Function cJSON_GetArrayItem

common/map_sdk/transmission/src/cJSON.cpp:661–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

CJsonObject.cppFile · 0.85
operator()Method · 0.85
GetMethod · 0.85
ReplaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected