aboutsummaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-04 21:01:21 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-05 03:08:14 +0100
commita3ea830c6ecebcfe85356d10fb5263f45ea01956 (patch)
tree9fca944b27d2aefe0d0ef1b2b589576a063d5b2f /helper.c
parent6ebaad27d92a5bb47fdf9618df12d3b4120f664e (diff)
downloadft_printf_test-a3ea830c6ecebcfe85356d10fb5263f45ea01956.tar.gz
ft_printf_test-a3ea830c6ecebcfe85356d10fb5263f45ea01956.tar.bz2
ft_printf_test-a3ea830c6ecebcfe85356d10fb5263f45ea01956.zip
Added iteractive mode and check with gcc -Wformat the generated test
before creating it
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/helper.c b/helper.c
index c4854bd..79af974 100644
--- a/helper.c
+++ b/helper.c
@@ -94,11 +94,11 @@ void ft_putstr_non_printable(char *str)
printf("\\0");
else
{
- ft_putchar('\\');
+ putchar('\\');
tmp = *cursor / 16;
- ft_putchar(hex_symbols[tmp]);
+ putchar(hex_symbols[tmp]);
tmp = *cursor % 16;
- ft_putchar(hex_symbols[tmp]);
+ putchar(hex_symbols[tmp]);
}
cursor++;
}