User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:ctype.h:isupper
click
to support this page (eg 0,42 € or so) Thanks.

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
advertising
c/ctype.h/isupper.txt · Last modified: 2013/01/22 22:02 (external edit)

Impressum