Keil Logo

toupper

Summary
#include <ctype.h>

int toupper (
  int c);   /* character to convert */
Description

The toupper function converts c to an uppercase character. If c is not an alphabetic letter, the toupper function has no effect.

Return Value

The toupper function returns the uppercase equivalent of c.

See Also

_tolower, _toupper, tolower

Example
#include <ctype.h>
#include <stdio.h> /* for printf */

void tst_toupper (void) {
  unsigned char i;

  for (i = 0x20; i < 0x7F; i++) {
    printf ("toupper(%c) = %c\n", i, toupper(i));
  }
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.