From 8b268a536be3bd4078b890d8ff9d18975902afef Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 11 Dec 2025 14:36:50 +0100 Subject: [PATCH] feat(char/isspace): adding isspace function --- char/ft_isspace.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 char/ft_isspace.c diff --git a/char/ft_isspace.c b/char/ft_isspace.c new file mode 100644 index 0000000..9ee39e4 --- /dev/null +++ b/char/ft_isspace.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_isspace.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rparodi +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2025/01/14 12:00:00 by rparodi #+# #+# */ +/* Updated: 2025/01/14 12:00:00 by rparodi ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "char.h" + +int ft_isspace(int c) +{ + return (c == ' ' || (c >= '\t' && c <= '\r')); +}