{{keywords>wiki library source code example reference}}
===== isupper =====
int isupper(int chr);
tests wheather a char is in uppercase
===== C Sourcecode Example =====
#include /* including standard library */
//#include /* uncomment this for Windows */
#include
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