Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
1st Parameter
The character to be tested, passed as an `unsigned char` cast to an `int`, or `EOF`
Read more about parameters of iscntrl in parameters section
The iscntrlfunction in C language Checks whether the character is a control character.
The iscntrl function tests whether c is a control character. Control characters are those between 0 and 31 in the ASCII table, plus the DEL character (127).
The iscntrlfunction takes 1
parameter:
•
int `c`: The character to be tested, passed as an `unsigned char` cast to an `int`, or `EOF`
Checks if the given character `c` is a control character. Control characters include non-printable characters such as newline (`\n`), tab (`\t`), and others in the ASCII range 0–31 and 127. Returns a nonzero value if `c` is a control character, and `0` otherwise.
The iscntrl function return value :
Returns non-zero if the character is a control character, 0 otherwise
Output
This example demonstrates basic usage of iscntrl with various characters, including control characters.