User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:ctype.h:toupper

Table of Contents

toupper

    #include <ctype.h>
    int toupper( int char );
  Returns upper case type of the character

C Sourcecode Example

#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;
}

output

  output:
  user@host:~$ ./toupper 
  I whant This in uppercase

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/ctype.h/toupper.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz