-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.c
More file actions
26 lines (23 loc) · 1.05 KB
/
Copy pathft_printf.c
File metadata and controls
26 lines (23 loc) · 1.05 KB
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: bgilwood <bgilwood@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/19 22:25:37 by medesmon #+# #+# */
/* Updated: 2019/09/26 20:04:08 by bgilwood ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf(char *fmt, ...)
{
t_params p;
p.format = (char *)fmt;
p.i = 0;
p.len = 0;
va_start(p.ap, fmt);
parser(&p);
va_end(p.ap);
return (p.len);
}