Table of Contents

isupper

    int isupper(int chr);

tests wheather a char is in uppercase

C Sourcecode Example

#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
#include <ctype.h>
 
int main ( void )
{
  int i;
  char string[11]="Test -!&%1";
  for (i=0; i <= 11;i++)
    {
     if ( isupper(string[i]) != 0 )
      {
       printf("Character %i is uppercase\n",i);
      }
    }
  return 0;
}

output

  output:
  user@host:~$ ./isupper 
  Character 0 is uppercase