feat(char/isspace): adding isspace function
This commit is contained in:
parent
8a294513d8
commit
8b268a536b
1 changed files with 18 additions and 0 deletions
18
char/ft_isspace.c
Normal file
18
char/ft_isspace.c
Normal 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'));
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue