toupper

Converts a character to uppercase.

Format

#include  <ctype.h>

int toupper  (int character);

Argument

character
An object of type int representable as an unsigned char or the value of EOF. For any other value, the behavior is undefined.

Description

If the argument represents a lowercase letter, and there is a corresponding uppercase letter, as defined by character type information in the program locale category LC_TYPE, the corresponding uppercase letter is returned.

If the argument is not a lowercase character, it is returned unchanged.

Return Value
The uppercase letter corresponding to the argument. Or, the unchanged argument, if the argument is not a lowercase character. 


Previous Page | Next Page | Table of Contents | Index