init
This commit is contained in:
18
libftx/libft/ft_tolower.c
Normal file
18
libftx/libft/ft_tolower.c
Normal file
@ -0,0 +1,18 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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));
|
||||
}
|
||||
Reference in New Issue
Block a user