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

Go to the source code of this file.

Functions

int ft_toupper (int c)
 Converts a lowercase ASCII letter to uppercase.
 

Function Documentation

◆ ft_toupper()

int ft_toupper ( int  c)

Converts a lowercase ASCII letter to uppercase.

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

Definition at line 19 of file ft_toupper.c.

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