MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_GetArrayItem

Function cJSON_GetArrayItem

framework/utils/cJSON.c:1762–1770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

CicadaJSON.cppFile · 0.85
deleteItemMethod · 0.85

Calls 1

get_array_itemFunction · 0.85

Tested by

no test coverage detected