diff --git a/Makefile b/Makefile index 56a5d47..1124304 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: tmaze +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2018/04/04 10:51:59 by tmaze #+# #+# # -# Updated: 2018/04/04 14:09:35 by tmaze ### ########.fr # +# Updated: 2018/04/04 15:07:23 by tmaze ### ########.fr # # # #******************************************************************************# @@ -16,12 +16,14 @@ CCSTD = -std=c99 NAME = libft.a -SRCS = ft_isalpha.c \ +SRCS = \ + ft_isalpha.c \ ft_isdigit.c \ ft_isalnum.c \ ft_isascii.c \ ft_isprint.c \ - ft_toupper.c + ft_toupper.c \ + ft_tolower.c OBJS = $(SRCS:.c=.o) INCLS = -I. diff --git a/ft_tolower.c b/ft_tolower.c new file mode 100644 index 0000000..312d28b --- /dev/null +++ b/ft_tolower.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_tolower.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: tmaze +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2018/04/04 14:24:13 by tmaze #+# #+# */ +/* Updated: 2018/04/04 14:24:34 by tmaze ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft.h" + +int ft_tolower(int c) +{ + return ((c >= 'A' && c <= 'Z') ? c + 32 : c); +}