Versions Compared

Key

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

According to Section 7.4 of C99 (see also bullet undefined behavior 107 of Appendix J):

The header <ctype.h> declares several functions useful for classifying and mapping characters. In all cases the argument is an int, the value of which shall be representable as an unsigned char or shall equal the value of the macro EOF. If the argument has any other value, the behavior is undefined.

...