From 49ad59b0e773e92e93fb69ede889c781ca53e680 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 15 Jan 2020 07:56:02 +0100 Subject: Move *.o -> src/, *.h -> include/ and *.o -> build --- src/ft_tolower.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/ft_tolower.c (limited to 'src/ft_tolower.c') diff --git a/src/ft_tolower.c b/src/ft_tolower.c new file mode 100644 index 0000000..919469f --- /dev/null +++ b/src/ft_tolower.c @@ -0,0 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_tolower.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 10:14:26 by cacharle #+# #+# */ +/* Updated: 2019/11/20 01:04:02 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +/* +** E: 0100 0101 +** e: 0110 0101 +** ^ +*/ + +int ft_tolower(int c) +{ + if (c >= 'A' && c <= 'Z') + return (c | 0b00100000); + return (c); +} -- cgit