This documentation is copyright © 1998-2001 Sandro Sigala <sandro@sigala.it>.
All rights reserved.
Released under the GNU General Public License.
iscntrl
Prototype
#include <ctype.h>
int iscntrl(int c);
Description
Returns a true value if the c
character is a control character.
Example
#include <ctype.h>
#include <stdio.h>
/*
* Get the next character from the standard input skipping the
* control characters.
*/
int xgetchar(void)
{
int c;
while (iscntrl(c = getchar()))
;
return c;
}
References
ISO C 9899:1990 7.3.1.3