iscntrl
Tests for a control character (function or macro)
#include <ctype.h>
int iscntrl (
int c);
The iscntrl function or macro returns a nonzero value when the argument is a control character. Otherwise, a value of 0 is returned.
A control character is any character whose value is from 0 to 31.
isalnum, isalpha, isdigit, islower, isprint, ispunct, isspace, isupper, isxdigit, tolower, toupper
#include <ctype.h> #include <stdio.h> main () { printf ("%d %d %d \u", iscntrl (’\u’), iscntrl (’\A’), iscntrl (’f’)); }
produces the following:
1 0 1