-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
43 lines (32 loc) · 1017 Bytes
/
main.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <stdio.h>
int main()
{
char cara = 'i';
char *str = "salut c'est moi";
void *ptr = str;
int ford = 42;
unsigned foru = 55;
unsigned forx = 15;
unsigned forX = 15;
char *str0 = NULL;
void *ptr0 = NULL;
ft_printf("PREMIERE PARTIE\n\n");
ft_printf("Ma fonction test suite :\n");
ft_printf("%c\n%s\n%p\n%d\n%u\n%x\n%X\n%%", cara, str, ptr, ford, foru, forx, forX);
printf("La vraie fonction test suite :\n");
printf("%c\n%s\n%p\n%d\n%u\n%x\n%X\n%%", cara, str, ptr, ford, foru, forx, forX);
ft_printf("\nDEUXIEME PARTIE\n\n");
ft_printf("%d\n", ft_printf("moi + %s", str));
printf("%d\n", printf("moi + %s", str));
ft_printf("\nTROISIEME PARTIE\n\n");
ft_printf("%s\n", str0);
ft_printf("%p\n", ptr0);
printf("%s\n", str0);
printf("%p\n", ptr0);
ft_printf("\nQUATRIEME PARTIE\n\n");
ft_printf("%d\n", ft_printf("Coucouc ca va %"));
printf("%d\n", printf("Coucouc ca va %"));
ft_printf("\nCINQUIEME PARTIR\n\n");
ft_printf("%p", (void *)-1);
printf("%p", (void *)-1);
}