summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_iswhitespace.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-01 18:28:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-01 18:28:12 +0200
commit70e3b4133b89e4e77a67139ccaa37322e2507e49 (patch)
treef288fbaad300075c16b6a5385d860b142fa59ba9 /libft/src/ft_iswhitespace.c
parentCool (diff)
download42-minishell-70e3b4133b89e4e77a67139ccaa37322e2507e49.tar.gz
42-minishell-70e3b4133b89e4e77a67139ccaa37322e2507e49.tar.bz2
42-minishell-70e3b4133b89e4e77a67139ccaa37322e2507e49.tar.xz
42-minishell-70e3b4133b89e4e77a67139ccaa37322e2507e49.tar.zst
42-minishell-70e3b4133b89e4e77a67139ccaa37322e2507e49.zip
Added quotes multiline
Diffstat (limited to 'libft/src/ft_iswhitespace.c')
-rw-r--r--libft/src/ft_iswhitespace.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/libft/src/ft_iswhitespace.c b/libft/src/ft_iswhitespace.c
new file mode 100644
index 0000000..3bb5868
--- /dev/null
+++ b/libft/src/ft_iswhitespace.c
@@ -0,0 +1,25 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_iswhitespace.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/14 17:06:40 by rbousset #+# #+# */
+/* Updated: 2020/02/14 17:06:40 by rbousset ### ########lyon.fr */
+/* */
+/* ************************************************************************** */
+
+#include <libft.h>
+
+t_bool
+ ft_iswhitespace(int c)
+{
+ if (c == '\t' ||
+ c == '\v' ||
+ c == '\f' ||
+ c == '\r' ||
+ c == ' ')
+ return (TRUE);
+ return (FALSE);
+}