Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_tolower.c File Reference

Go to the source code of this file.

Functions

int ft_tolower (int c)
 Converts an uppercase ASCII letter to lowercase.
 

Function Documentation

◆ ft_tolower()

int ft_tolower ( int  c)

Converts an uppercase ASCII letter to lowercase.

Parameters
cCharacter value.
Returns
Lowercase ASCII equivalent when applicable, otherwise unchanged.

Definition at line 19 of file ft_tolower.c.

20{
21 return (c + 32 * ((unsigned int)(c - 'A') < 26));
22}