aboutsummaryrefslogtreecommitdiff
path: root/c02/ex06/ft_str_is_printable.c
diff options
context:
space:
mode:
Diffstat (limited to 'c02/ex06/ft_str_is_printable.c')
-rw-r--r--c02/ex06/ft_str_is_printable.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/c02/ex06/ft_str_is_printable.c b/c02/ex06/ft_str_is_printable.c
new file mode 100644
index 0000000..cd5148e
--- /dev/null
+++ b/c02/ex06/ft_str_is_printable.c
@@ -0,0 +1,19 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_str_is_printable.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/07/03 19:43:32 by cacharle #+# #+# */
+/* Updated: 2019/07/03 19:44:57 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+int ft_str_is_printable(char *str)
+{
+ while (*str != '\0')
+ if (*str < ' ')
+ return (0);
+ return (1);
+}