aboutsummaryrefslogtreecommitdiff
path: root/c02/ex11
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-05 09:52:18 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-05 09:52:18 +0200
commit1efffca20580601c99fce13f0ade1b36ed5665a4 (patch)
treecb3b12beae45345a131d99a949f7708a0590d7da /c02/ex11
parentdbfa9d5d6b8bebde60f714253409ad46e328d358 (diff)
downloadpiscine-1efffca20580601c99fce13f0ade1b36ed5665a4.tar.gz
piscine-1efffca20580601c99fce13f0ade1b36ed5665a4.tar.bz2
piscine-1efffca20580601c99fce13f0ade1b36ed5665a4.zip
c02 tested
Diffstat (limited to 'c02/ex11')
-rw-r--r--c02/ex11/ft_putstr_non_printable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/c02/ex11/ft_putstr_non_printable.c b/c02/ex11/ft_putstr_non_printable.c
index 0171464..d436d9e 100644
--- a/c02/ex11/ft_putstr_non_printable.c
+++ b/c02/ex11/ft_putstr_non_printable.c
@@ -6,7 +6,7 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/04 16:46:03 by cacharle #+# #+# */
-/* Updated: 2019/07/04 21:53:48 by cacharle ### ########.fr */
+/* Updated: 2019/07/05 07:44:04 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,14 +17,14 @@ void ft_putchar(char c)
write(1, &c, 1);
}
-void ft_putstr_non_printable(char *str)
+void ft_putstr_non_printable(char *str)
{
unsigned char tmp;
unsigned char *cursor;
- char *hex_symbols;
+ char *hex_symbols;
hex_symbols = "0123456789abcdef";
- cursor = str;
+ cursor = (unsigned char*)str;
while (*cursor != '\0')
{
if (*cursor >= ' ' && *cursor <= '~')