MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / get_array_item

Function get_array_item

cJSON_Utils.c:262–272  ·  view source on GitHub ↗

non broken version of cJSON_GetArrayItem */

Source from the content-addressed store, hash-verified

260
261/* non broken version of cJSON_GetArrayItem */
262static cJSON *get_array_item(const cJSON *array, size_t item)
263{
264 cJSON *child = array ? array->child : NULL;
265 while ((child != NULL) && (item > 0))
266 {
267 item--;
268 child = child->next;
269 }
270
271 return child;
272}
273
274static cJSON_bool decode_array_index_from_pointer(const unsigned char * const pointer, size_t * const index)
275{

Callers 1

get_item_from_pointerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…