feat(char/isspace): adding isspace function

This commit is contained in:
Raphael 2025-12-11 14:36:50 +01:00
parent 8a294513d8
commit 8b268a536b
No known key found for this signature in database

18
char/ft_isspace.c Normal file
View file

@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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'));
}