User Tools

Site Tools


c:ctype.h:toupper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:ctype.h:toupper [2013/01/22 22:02] (current)
Line 1: Line 1:
 +{{keywords>wiki library source code example reference}}
 +===== toupper ======
 +<code c>
 +    #include <ctype.h>
 +    int toupper( int char );
 +</code>
 +    Returns upper case type of the character
 +
 +===== C Sourcecode Example =====
 +<code c>
 +#include <stdio.h> /* including standard library */
 +//#include <windows.h> /* uncomment this for Windows */
 +
 +#include <ctype.h>
 +
 +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;
 +}
 +</code>
 +==== output ====
 +    output:
 +    user@host:~$ ./toupper 
 +    I whant This in uppercase
 +
  
advertising
c/ctype.h/toupper.txt · Last modified: 2013/01/22 22:02 (external edit)

Impressum Datenschutz