aboutsummaryrefslogtreecommitdiff
path: root/c02/ex06
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-06 08:42:30 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-06 08:42:30 +0200
commit244f5209ba7885daa513e3780b66df454422b910 (patch)
treec2123d55a7431de9bb55371dcc78c955da607c6f /c02/ex06
parent1efffca20580601c99fce13f0ade1b36ed5665a4 (diff)
downloadpiscine-244f5209ba7885daa513e3780b66df454422b910.tar.gz
piscine-244f5209ba7885daa513e3780b66df454422b910.tar.bz2
piscine-244f5209ba7885daa513e3780b66df454422b910.zip
c03 and begin c04
Diffstat (limited to 'c02/ex06')
-rw-r--r--c02/ex06/ft_str_is_printable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c02/ex06/ft_str_is_printable.c b/c02/ex06/ft_str_is_printable.c
index edb8fe5..ad9e05a 100644
--- a/c02/ex06/ft_str_is_printable.c
+++ b/c02/ex06/ft_str_is_printable.c
@@ -6,7 +6,7 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/03 19:43:32 by cacharle #+# #+# */
-/* Updated: 2019/07/04 21:02:08 by cacharle ### ########.fr */
+/* Updated: 2019/07/05 10:05:14 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,7 +14,7 @@ int ft_str_is_printable(char *str)
{
while (*str != '\0')
{
- if (*str < ' ')
+ if (*str < ' ' || *str > '~')
return (0);
str++;
}