-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf.c
executable file
·26 lines (22 loc) · 1.13 KB
/
ft_printf.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akharrou <akharrou@student.42.us.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/14 23:17:26 by akharrou #+# #+# */
/* Updated: 2019/05/08 09:01:06 by akharrou ### ########.fr */
/* */
/* ************************************************************************** */
#include "../Includes/macros_42.h"
#include "../Includes/ft_printf.h"
/*
** Reproduction of the libc 'printf()' function.
*/
int ft_printf(const char *format, ...)
{
va_list args;
va_start(args, format);
return (ft_vdprintf(STDOUT, format, &args));
}