MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_GetArrayItem

Function cJSON_GetArrayItem

cpworker/src/cJSON/cJSON.c:1888–1896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1886}
1887
1888CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index)
1889{
1890 if (index < 0)
1891 {
1892 return NULL;
1893 }
1894
1895 return get_array_item(array, (size_t)index);
1896}
1897
1898static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)
1899{

Callers 2

parse_task_configFunction · 0.85
parse_tasks_jsonFunction · 0.85

Calls 1

get_array_itemFunction · 0.70

Tested by

no test coverage detected