3.2. Character Case Mapping Functions

3.2.1. The tolower function

Synopsis
#include <ctype.h>

int tolower (int c );

Description

The tolower function converts an upper case letter to the corresponding lower case letter.

Returns

If the argument is a character for which isupper is true and there is a corresponding character for which islower is true, the tolower function returns the corresponding character; otherwise, the argument is returned unchanged.

3.2.2. The toupper function

Synopsis
#include <ctype.h>

int toupper (int c );

Description

The toupper function converts an lower case letter to the corresponding upper case letter.

Returns

If the argument is a character for which islower is true and there is a corresponding character for which isupper is true, the toupper function returns the corresponding character; otherwise, the argument is returned unchanged.