25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_printf.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/10/06 22:01:28 by cchauvet #+# #+# */
|
|
/* Updated: 2022/10/10 17:34:18 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "printf.h"
|
|
|
|
int ft_printf(const char *s, ...)
|
|
{
|
|
va_list va;
|
|
int i;
|
|
|
|
va_start(va, s);
|
|
i = ft_vdprintf(1, s, va);
|
|
va_end(va);
|
|
return (i);
|
|
}
|