Lines Matching defs:index
316 /* check if the buffer can be accessed at the given index (starting with 0) */
317 #define can_access_at_index(buffer, index) ((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length))
318 #define cannot_access_at_index(buffer, index) (!can_access_at_index(buffer, index))
2099 static cJSON* get_array_item(const cJSON *array, size_t index)
2109 while ((current_child != NULL) && (index > 0))
2111 index--;
2118 CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index)
2120 if (index < 0)
2125 return get_array_item(array, (size_t)index);