Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

isupper - Test for uppercase letter

&pagelevel(4)&pagelevel

Definition

#include <ctype.h>

int isupper(int c);

isupper checks whether the character c is an uppercase letter (A-Z).

Return val.

!= 0

0

c is an uppercase letter.

c is not an uppercase letter.

Note

isupper is implemented both as a macro and as a function (see section “Functions and macros”).

Example

#include <ctype.h>
#include <stdio.h>
int main(void)
{
  int c;
  while((c = getchar()) != EOF)
    printf("%s : %c\n",((isupper(c))? "Uppercase letter " : "Other"), c);
  return 0;
} 

See also

isalnum, isascii, iscntrl, isdigit, islower, isprint, ispunct, isgraph, isspace, isalpha, isxdigit,
isebcdic, iswupper