42_ft_printf/ft_printf.c

25 lines
1.0 KiB
C
Raw Permalink Normal View History

2022-10-06 20:30:03 -04:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/06 22:01:28 by cchauvet #+# #+# */
2022-10-23 13:01:50 -04:00
/* Updated: 2022/10/12 16:34:31 by cchauvet ### ########.fr */
2022-10-06 20:30:03 -04:00
/* */
/* ************************************************************************** */
2022-10-23 13:01:50 -04:00
#include "ft_printf.h"
2022-10-06 20:30:03 -04:00
2022-10-23 13:01:50 -04:00
int ft_printf(const char *format, ...)
2022-10-06 20:30:03 -04:00
{
va_list va;
2022-10-10 13:33:47 -04:00
int i;
2022-10-06 20:30:03 -04:00
2022-10-23 13:01:50 -04:00
va_start(va, format);
i = ft_vdprintf(1, format, va);
2022-10-06 20:30:03 -04:00
va_end(va);
2022-10-10 13:33:47 -04:00
return (i);
2022-10-06 20:30:03 -04:00
}