-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
34 lines (31 loc) · 1.29 KB
/
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jovicto2 <jovicto2@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/06/25 17:35:24 by jovicto2 #+# #+# */
/* Updated: 2023/06/25 17:36:52 by jovicto2 ### ########.fr */
/* */
/* ************************************************************************** */
#include "bonus/includes/ft_printf_bonus.h"
#include <stdio.h>
#include <limits.h>
int main(void)
{
int ft;
int stdio;
ft_printf("ft_printf: ");
ft = ft_printf("%s", "bombastic");
printf("X\n___printf: ");
stdio = printf("%s", "bombastic");
if (ft == stdio)
printf("X\nSame return values.");
else
{
printf("X\ndifference in return values.\n");
printf("returned: %d\noriginal: %d\n", ft, stdio);
}
return (0);
}