MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_GetArrayItem

Function cJSON_GetArrayItem

general/package/xmdp/src/cjson/cJSON.c:1864–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1862}
1863
1864CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index)
1865{
1866 if (index < 0)
1867 {
1868 return NULL;
1869 }
1870
1871 return get_array_item(array, (size_t)index);
1872}
1873
1874static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)
1875{

Callers

nothing calls this directly

Calls 1

get_array_itemFunction · 0.85

Tested by

no test coverage detected