Keil Logo Arm Logo

CARM User's Guide

Discontinued

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

Keil logo

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.