libft_old/extended_libft/ft_toupper.c
Willem Haffmans 326f52308e all
2024-07-26 22:32:04 +02:00

21 lines
1004 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/05 18:42:12 by whaffman #+# #+# */
/* Updated: 2024/07/08 15:53:24 by whaffman ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if ('a' <= c && 'z' >= c)
return (c - 'a' + 'A');
return (c);
}