Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Validates a value as greater than or equal to a specified minimum value and less than or equal to a specified maximum value.

Files

lib_def.h

Prototype

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          DEF_CHK_VAL(val, val_min, val_max);

Arguments

val

Value to validate.

...

DEF_CHK_VAL() does not validate that the maximum value (val_max) is greater than or equal to the minimum value (val_min).

Example Usage

...

LanguageC++
CaptionTextCAPTION
languagecpp

...