/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_printf.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/07 13:33:27 by jhalford #+# #+# */ /* Updated: 2017/04/02 15:22:13 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "ft_printf.h" int ft_printf(const char *format, ...) { va_list ap; va_start(ap, format); return (ft_vdprintf(1, format, ap)); } int ft_dprintf(int fd, const char *format, ...) { va_list ap; va_start(ap, format); return (ft_vdprintf(fd, format, ap)); } int ft_asprintf(char **ret, const char *format, ...) { va_list ap; va_start(ap, format); return (ft_vasprintf(ret, format, ap)); }