aboutsummaryrefslogtreecommitdiff
path: root/lib/libft/ft_isspace.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-10-17 14:02:28 +0200
committerDominik Kaiser2024-10-17 14:02:28 +0200
commit873c0ddbec693666dda5d92654fcb07d4b41b4dc (patch)
tree4620160a22005f026db7e18290f508e3d88acc83 /lib/libft/ft_isspace.c
parentd5dcf4325dd6efa641767dfd6e07d2c4f80ad252 (diff)
parent85d82207526e7220bd14bc96e5f8079ec781fc75 (diff)
downloadminishell-873c0ddbec693666dda5d92654fcb07d4b41b4dc.tar.gz
minishell-873c0ddbec693666dda5d92654fcb07d4b41b4dc.zip
Merge changes from main into interpreter
Diffstat (limited to 'lib/libft/ft_isspace.c')
-rw-r--r--lib/libft/ft_isspace.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libft/ft_isspace.c b/lib/libft/ft_isspace.c
new file mode 100644
index 0000000..63f21fa
--- /dev/null
+++ b/lib/libft/ft_isspace.c
@@ -0,0 +1,20 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_isspace.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2024/08/11 13:59:45 by chuhlig #+# #+# */
+/* Updated: 2024/08/11 14:04:23 by chuhlig ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+int ft_isspace(char c)
+{
+ if (c == ' ' || c == '\t')
+ return (1);
+ return (0);
+}