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

Function get_array_item

cpworker/src/cJSON/cJSON_Utils.c:268–278  ·  view source on GitHub ↗

non broken version of cJSON_GetArrayItem */

Source from the content-addressed store, hash-verified

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

Callers 1

get_item_from_pointerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected