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