aboutsummaryrefslogtreecommitdiff
path: root/ft_isspace.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-15 11:40:48 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-04 04:09:19 +0100
commit014d876b691b5c0e84faa98bd308a855269e4ae4 (patch)
tree8c26213ab8426f906fa143f904ab0f6a39e22013 /ft_isspace.c
parent435fec311c0c5173ae99c32b8f4e6431bd1e43d2 (diff)
downloadlibft-014d876b691b5c0e84faa98bd308a855269e4ae4.tar.gz
libft-014d876b691b5c0e84faa98bd308a855269e4ae4.tar.bz2
libft-014d876b691b5c0e84faa98bd308a855269e4ae4.zip
Added ft_strtol, ft_isspace, ft_todigit, ft_strict_atoi, modified ft_atoi to use ft_strtol
Diffstat (limited to 'ft_isspace.c')
-rw-r--r--ft_isspace.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/ft_isspace.c b/ft_isspace.c
new file mode 100644
index 0000000..18b6dba
--- /dev/null
+++ b/ft_isspace.c
@@ -0,0 +1,19 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_isspace.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/01/15 11:33:36 by cacharle #+# #+# */
+/* Updated: 2020/01/15 11:35:07 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+int ft_isspace(int c)
+{
+ return (c == ' ' || c == '\t' || c == '\n'
+ || c == '\v' || c == '\f' || c == '\r');
+}