aboutsummaryrefslogtreecommitdiffstats
path: root/ft_isascii.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_isascii.c')
-rw-r--r--ft_isascii.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ft_isascii.c b/ft_isascii.c
new file mode 100644
index 0000000..f9e877e
--- /dev/null
+++ b/ft_isascii.c
@@ -0,0 +1,7 @@
+#include "libft.h"
+
+int
+ft_isascii (int c)
+{
+ return (c >= 0 && c <= 127);
+}