Embedded Artistry Framework
Embedded Systems C++ Framework
Functions
toupper.c File Reference
#include <ctype.h>
Include dependency graph for toupper.c:

Functions

int toupper (int c)
 Converts the given character to lowercase. More...
 

Function Documentation

◆ toupper()

int toupper ( int  ch)

Converts the given character to lowercase.

Converts the given character to lowercase according to the character conversion rules defined by the default local, i.e. the following lowercase letters (abcdefghijklmnopqrstuvwxyz) are replaced with respective uppercase letters (ABCDEFGHIJKLMNOPQRSTUVWXYZ).

The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.

Parameters
chcharacter to be converted.
Returns
Uppercase version of ch or unmodified ch if no uppercase version is listed in the default locale.

References islower().

Referenced by bad_input(), good_input(), and towupper().

Here is the caller graph for this function: