From af8435d40cdb8e7871ff004fb21382c236f9bd0f Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 5 Jul 2019 09:52:18 +0200 Subject: c02 tested --- c02/ex11/ft_putstr_non_printable.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c02/ex11') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 <= '~') -- cgit