Next: rangel_reset, Previous: rangel_rep_minval, Up: Ranges [Contents]
replace matching range minimum and maximum values
#include <suplib/range.h> void rangel_rep_val( RangeLList *rl, long minval, long maxval, long minrepval, long maxrepval );
RangeLList *rl
the list to edit
long minval
the minimum value to match
long maxval
the maximum value to match
long minrepval
the replacement minimum value
long maxrepval
the replacement maximum value
rangel_rep_maxval
replaces the maximum value for those
ranges whose maximum values match the passed one with another
value. It also replaces the minimum value of the ranges which
match the passed minimum value with another value.
Diab Jerius