{{keywords>wiki library source code example reference}}
===== toupper ======
#include
int toupper( int char );
Returns upper case type of the character
===== C Sourcecode Example =====
#include /* including standard library */
//#include /* uncomment this for Windows */
#include
int main ( void )
{
char string[30];
/* write the Chars "i" and "t" uppercase in the buffer "string" */
sprintf(string,"%c whant %chis in uppercase",toupper('i'), toupper('t'));
printf("%s\n",string);
return 0;
}
==== output ====
output:
user@host:~$ ./toupper
I whant This in uppercase