Next: , Previous: rangel_rep_minval, Up: Ranges   [Contents]


3.15 rangel_rep_val

replace matching range minimum and maximum values

Synopsis

#include <suplib/range.h>

void rangel_rep_val(
  RangeLList *rl,
  long minval,
  long maxval,
  long minrepval,
  long maxrepval
);

Parameters

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

Description

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.

Author

Diab Jerius