diff options
Diffstat (limited to 'libft/ft_dprintf.c')
-rw-r--r-- | libft/ft_dprintf.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libft/ft_dprintf.c b/libft/ft_dprintf.c new file mode 100644 index 0000000..2a2234a --- /dev/null +++ b/libft/ft_dprintf.c @@ -0,0 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_dprintf.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/10/06 14:29:46 by kdx #+# #+# */ +/* Updated: 2022/10/06 14:33:24 by kdx ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft.h" + +t_i32 ft_dprintf(int fd, const char *fmt, ...) +{ + va_list va; + t_i32 rv; + + va_start(va, fmt); + rv = ft_vdprintf(fd, fmt, va); + va_end(va); + return (rv); +} |