-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.c
More file actions
27 lines (24 loc) · 1.1 KB
/
Copy pathft_printf.c
File metadata and controls
27 lines (24 loc) · 1.1 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: shoudek <shoudek@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/16 15:42:47 by shoudek #+# #+# */
/* Updated: 2024/01/23 14:27:42 by shoudek ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf(const char *format, ...)
{
va_list args;
int sum;
int *ptr_sum;
sum = 0;
ptr_sum = ∑
va_start(args, format);
while (*format)
format = ft_format(format, ptr_sum, args);
return (sum);
}