42_minishell/libftx/printf/ft_printf.c

36 lines
1.2 KiB
C
Raw Permalink Normal View History

2023-01-31 08:40:15 -05:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/06 22:01:28 by cchauvet #+# #+# */
2023-02-21 07:28:45 -05:00
/* Updated: 2023/02/21 13:27:31 by cchauvet ### ########.fr */
2023-01-31 08:40:15 -05:00
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf(const char *format, ...)
{
va_list va;
int i;
va_start(va, format);
i = ft_vdprintf(1, format, va);
va_end(va);
return (i);
}
2023-02-21 07:28:45 -05:00
int ft_dprintf(int fd, const char *format, ...)
{
va_list va;
int i;
va_start(va, format);
i = ft_vdprintf(fd, format, va);
va_end(va);
return (i);
}