diff options
Diffstat (limited to 'c02/ex11')
| -rw-r--r-- | c02/ex11/ft_putstr_non_printable.c | 8 |
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 <= '~') |
