Table of Contents

toupper

int toupper(int c)

Description

Returns the uppercase version of c. If c is not an ASCII letter, it is returned unchanged.

To change the case of a whole string, use StrToUpper.

Examples

toupper('a') -> 'A'
toupper('A') -> 'A'
toupper('/') -> '/' // not a letter
toupper('ä') -> 'ä' // non-ASCII character

See also

tolower