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_isascii.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/ft_isascii.c (limited to 'src/ft_isascii.c') diff --git a/src/ft_isascii.c b/src/ft_isascii.c new file mode 100644 index 0000000..51dcd1c --- /dev/null +++ b/src/ft_isascii.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_isascii.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 09:54:30 by cacharle #+# #+# */ +/* Updated: 2019/10/20 13:03:23 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#define MAX_CHAR ((1 << 7) - 1) + +int ft_isascii(int c) +{ + return (c >= 0 && c <= MAX_CHAR); +} -- cgit