Archived
1
0

fuckin printf

This commit is contained in:
Adam Joly
2023-11-26 15:09:54 +01:00
parent 19bccde400
commit 5c1a6b71a0
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */ /* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/17 16:48:37 by adjoly #+# #+# */ /* Created: 2023/11/17 16:48:37 by adjoly #+# #+# */
/* Updated: 2023/11/22 14:01:50 by adjoly ### ########.fr */ /* Updated: 2023/11/26 15:08:59 by adjoly ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -76,7 +76,10 @@ int ft_printf(const char *format, ...)
if (format[i] == '%') if (format[i] == '%')
{ {
i++; i++;
count += ft_printconversion(format[i], args); if (format[i])
count += ft_printconversion(format[i], args);
else
return (-1);
} }
else else
count += ft_putchar(format[i]); count += ft_putchar(format[i]);

1
printfTester Submodule

Submodule printfTester added at d8211afbd1