iscntrl - test for a control character
#include <ctype.h> int iscntrl(int c);
The iscntrl() function tests whether c is a character of class cntrl in the program's current locale, see the XBD specification, Locale .In all cases c is a type int, the value of which must be a character representable as an unsigned char or must equal the value of the macro EOF. If the argument has any other value, the behaviour is undefined.
The iscntrl() function returns non-zero if c is a control character; otherwise it returns 0.
No errors are defined.
None.
To ensure applications portability, especially across natural languages, only this function and those listed in the SEE ALSO section should be used for character classification.
None.
isalnum(), isalpha(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isspace(), isupper(), isxdigit(), setlocale(), <ctype.h>, the XBD specification, Locale .
Derived from Issue 1 of the SVID.