-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
37 lines (34 loc) · 1.26 KB
/
main.c
File metadata and controls
37 lines (34 loc) · 1.26 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
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ecarvalh <ecarvalh@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/08 16:13:17 by ecarvalh #+# #+# */
/* Updated: 2024/01/11 23:39:34 by ecarvalh ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
#include <stdio.h>
#include <limits.h>
int main(void)
{
int i;
int len;
int (*print)(const char *, ...);
i = 0;
print = printf;
print("printf:\n");
while (i++ != 2)
{
len = print("%---105p%-%%--150.i" ,(void*)5854188174500153960lu,-1646567843);
print("len: %d\n", len);
if (i == 1)
{
print("ft_printf:\n");
print = ft_printf;
}
}
return (0);
}