P99

◆ P99_IN_RANGE

#define P99_IN_RANGE (   R,
  S,
 
)    P00_IN_RANGE((R), (S), (L), P00_IN_RANGE_LIST())

check if R is in the range [S, S + L)

This is a type generic function that should work with all real types and pointer types, though you may encounter some surprises with floating point types due to rounding errors.

Warning
The length parameter L is to be taken in bytes and not in numbers of elements of the base type.
Remarks
argument 0 maybe evaluated several times for its type but only once for its value
argument 1 maybe evaluated several times for its type but only once for its value

Definition at line 1499 of file p99_generic.h.