-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.c
More file actions
32 lines (28 loc) · 1.12 KB
/
Copy pathft_printf.c
File metadata and controls
32 lines (28 loc) · 1.12 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
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kamanfo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/26 12:58:08 by kamanfo #+# #+# */
/* Updated: 2021/11/26 14:55:23 by kamanfo ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf(const char *format, ...)
{
int i;
int count;
va_list param;
va_start(param, format);
i = 0;
count = 0;
while (format[i])
{
if (format[i] == '%')
{
count += ft_threat_conv(format, param, i++);
}
}
}