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

21 lines
1004 B
C

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