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

Function cJSON_GetArrayItem

libapp2sys/src/main/cpp/cjson/cJSON.c:1766–1774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1764}
1765
1766CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index)
1767{
1768 if (index < 0)
1769 {
1770 return NULL;
1771 }
1772
1773 return get_array_item(array, (size_t)index);
1774}
1775
1776static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)
1777{

Callers

nothing calls this directly

Calls 1

get_array_itemFunction · 0.85

Tested by

no test coverage detected