42_cube3D/libftx/libft/ft_tolower.c
Camille Chauvet 537283e940 add: libftx
2023-04-26 11:02:44 +00:00

19 lines
990 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/26 12:38:07 by cchauvet #+# #+# */
/* Updated: 2022/09/28 16:41:24 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
return (c - ('A' - 'a') * (c >= 'A' && 'Z' >= c));
}