added finished algorithm
merged algorithm from other personnal repo
This commit is contained in:
19
libft/srcs/ft_iswhitespace.c
Normal file
19
libft/srcs/ft_iswhitespace.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_iswhitespace.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/25 16:11:19 by tmaze #+# #+# */
|
||||
/* Updated: 2019/02/25 16:13:25 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_iswhitespace(char c)
|
||||
{
|
||||
return (c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f'
|
||||
|| c == '\r');
|
||||
}
|
Reference in New Issue
Block a user