ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:toupper

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

functions/toupper.txt · Last modified: 2017/04/15 17:36 by korshun