Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
islower.c File Reference
#include <ctype.h>
Include dependency graph for islower.c:

Go to the source code of this file.

Functions

int islower (int c)
 Checks if the given character is classified as a lowercase character. More...
 

Function Documentation

◆ islower()

int islower ( int  ch)

Checks if the given character is classified as a lowercase character.

Checks if the given character is classified as a lowercase character using the default local. islower returns true only for the lowercase letters (abcdefghijklmnopqrstuvwxyz). If islower returns true, it is guaranteed that

See also
iscntrl,
isdigit,
ispunct,
isspace will return false for the same character in the same default locale.

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

Parameters
chThe character to classify
Returns
Non-zero value if the character is a lowercase letter, zero otherwise.

Definition at line 5 of file islower.c.

6 {
7  return (unsigned)c - 'a' < 26;
8 }

Referenced by toupper().

Here is the caller graph for this function: