Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_toupper.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_toupper.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: raphalme <raphalme@student.42.fr> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2025/12/29 18:36:00 by raphalme #+# #+# */
9
/* Updated: 2026/04/14 10:45:22 by raphalme ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
19
int
ft_toupper
(
int
c)
20
{
21
return
(c - 32 * ((
unsigned
int
)(c -
'a'
) < 26));
22
}
ft_toupper
int ft_toupper(int c)
Converts a lowercase ASCII letter to uppercase.
Definition
ft_toupper.c:19
src
ft_toupper.c
Generated by
1.9.8