Files
mmoat/lib/libft/srcs/str/ft_toupper.c
gazhonsepaskwa 09c2cb5b3e base struct
2025-01-13 13:21:53 +01:00

22 lines
1009 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/12 12:01:30 by nalebrun #+# #+# */
/* Updated: 2024/11/27 12:58:24 by nalebrun ### ########.fr */
/* */
/* ************************************************************************** */
#include "../../libft.h"
int ft_toupper(int c)
{
if (c >= 97 && c <= 122)
return (c - 32);
else
return (c);
}