Improve main by implementing fmtsplit to split format into chunks and pass function pointer to compare ft_printf with printf

This commit is contained in:
gbaconni
2022-04-24 00:40:01 +02:00
parent 505f5d9912
commit d4fb946428
11 changed files with 236 additions and 271 deletions

View File

@@ -6,7 +6,7 @@
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/20 12:58:03 by gbaconni #+# #+# */
/* Updated: 2022/04/17 22:39:45 by gbaconni ### lausanne.ch */
/* Updated: 2022/04/24 00:34:40 by gbaconni ### lausanne.ch */
/* */
/* ************************************************************************** */
@@ -14,9 +14,11 @@
int ft_vprintf_other(const char *format, va_list ap)
{
int ret;
int ret;
char c;
(void) ap;
ret = ft_putchar(*format);
c = *format;
ret = ft_putchar(c);
return (ret);
}