-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
25 lines (21 loc) · 719 Bytes
/
main.c
File metadata and controls
25 lines (21 loc) · 719 Bytes
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
#include <stdio.h>
#include "ft_printf.h"
int main(void) {
char c = 'c';
char *s = "yolo";
int num = 10, *p = #
int d = 42;
int i = -1234;
unsigned int u = 9999999;
int x = 2147483647;
int X = 2147483647;
char *ns = NULL;
char *np = NULL;
double f = -42.1234567890123456789;
int ret_printf, ret_ft_printf;
printf("------TESTING FLOAT------\n");
ret_printf = printf("Theirs :%.19f\n", f);
ret_ft_printf = ft_printf("Mine :%f\n", f);
printf("Return values - printf: %d, ft_printf: %d\n\n", ret_printf, ret_ft_printf);
return 0;
}