summaryrefslogtreecommitdiff
path: root/libft/ft_printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/ft_printf.c')
-rw-r--r--libft/ft_printf.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/libft/ft_printf.c b/libft/ft_printf.c
new file mode 100644
index 0000000..49643cb
--- /dev/null
+++ b/libft/ft_printf.c
@@ -0,0 +1,24 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_printf.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2022/10/06 14:29:46 by kdx #+# #+# */
+/* Updated: 2022/10/06 14:34:30 by kdx ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+t_i32 ft_printf(const char *fmt, ...)
+{
+ va_list va;
+ t_i32 rv;
+
+ va_start(va, fmt);
+ rv = ft_vprintf(fmt, va);
+ va_end(va);
+ return (rv);
+}