/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_vprintf.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/01/20 11:43:52 by gbaconni #+# #+# */ /* Updated: 2022/04/29 08:48:39 by gbaconni ### lausanne.ch */ /* */ /* ************************************************************************** */ #include "libftprintf.h" int ft_vprintf(char const *format, va_list ap) { int ret; ret = 0; while (*format != 0) { if (*format == '%') { format++; ret += ft_vprintf_percent(format, ap); format += ft_eoflags(format); } else ret += ft_vprintf_other(format, ap); format++; } return (ret); }