aboutsummaryrefslogtreecommitdiff
path: root/src/ft_printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_printf.c')
-rw-r--r--src/ft_printf.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ft_printf.c b/src/ft_printf.c
new file mode 100644
index 0000000..1b92bb2
--- /dev/null
+++ b/src/ft_printf.c
@@ -0,0 +1,24 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_printf.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/11/21 02:31:32 by cacharle #+# #+# */
+/* Updated: 2019/11/21 03:41:54 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+int ft_printf(const char *format, ...)
+{
+ int ret;
+ va_list ap;
+
+ va_start(ap, format);
+ ret = ft_vprintf(format, ap);
+ va_end(ap);
+ return (ret);
+}