14-04-2026
20 lines
997 B
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_toupper.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: mleitao <mleitao@student.42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2026/03/11 16:45:20 by mleitao #+# #+# */
9/* Updated: 2026/04/14 19:39:46 by mleitao ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15int ft_toupper(int c)
16{
17 if (c >= 'a' && c <= 'z')
18 return (c - 32);
19 return (c);
20}