Add pointer support and improve debug and valgrind in Makefile

This commit is contained in:
gbaconni
2022-04-15 17:20:15 +02:00
parent af87168372
commit 175a774e49
6 changed files with 82 additions and 27 deletions

View File

@@ -6,7 +6,7 @@
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/20 11:43:52 by gbaconni #+# #+# */
/* Updated: 2022/04/15 00:25:52 by gbaconni ### lausanne.ch */
/* Updated: 2022/04/15 16:37:06 by gbaconni ### lausanne.ch */
/* */
/* ************************************************************************** */
@@ -21,7 +21,7 @@ int ft_vprintf(char const *format, va_list ap)
{
if (*format == '%')
{
if (*format++ == '%')
if (*++format == '%')
ret += ft_vprintf_percent(format, ap);
else if (*format == 'c')
ret += ft_vprintf_char(format, ap);