Next: rangel_minmax, Previous: rangel_new, Up: Ranges
get the next element in the range list
#include <suplib/range.h>int rangel_next( RangeLList *rl, long *elem );
RangeLList *rl
- the range to iterate over
long *elem
- the returned element
rangel_next
serves as an iterator over the passed list of ranges,
returning the next element in the list. To reset the iterator,
rangel_reset. The element is returned via the elem argument.
It returns ‘1’ if there is an element left, ‘0’ if it has reached the end of the range list.
Diab Jerius