 |
Cx51 User's Guide |
 |
|
|
|
|
isprint
| Summary |
|
| Description |
The isprint function tests c to
determine if it is a printable character (0x20-0x7E).
|
| Return Value |
The isprint function returns a value of 1 if c is a printable character or a value of 0 if it is
not.
|
| See Also | isalnum, isalpha, iscntrl, isdigit, isgraph, islower, ispunct, isspace, isupper, isxdigit |
| Example |
#include <ctype.h>
#include <stdio.h> /* for printf */
void tst_isprint (void) {
unsigned char i;
char *p;
for (i = 0; i < 128; i++) {
p = (isprint (i) ? "YES" : "NO");
printf ("isprint (%c) %s\n", i, p);
}
}
|
|
|
|