42_ft_printf/ft_vdprintf.c
Camille Chauvet 780ac9ced3 init
2022-10-07 02:30:03 +02:00

24 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_vdprintf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/06 16:39:25 by cchauvet #+# #+# */
/* Updated: 2022/10/07 01:38:18 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
char *ft_vdprintf(int fd, const char *format, va_list va)
{
char *str;
str = ft_strdup("");
str = ft_vsprintf(str, format, va);
ft_putstr_fd(str, fd);
return (str);
}