-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_i_precision_load.c
40 lines (36 loc) · 1.4 KB
/
ft_printf_i_precision_load.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_i_precision_load.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenamar <abenamar@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/04 18:34:41 by abenamar #+# #+# */
/* Updated: 2023/05/03 01:38:39 by abenamar ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf_test.h"
static void load(void)
{
const int i[10] = { 0, -0, -1234, 456, -2147483648, 2147483647, 1000000000, 0, -2147483648, 2147483647 };
int n;
int nb;
n = 0;
while (n < 7)
{
nb = ft_printf("%.15i" EOL, i[n]);
printf("%d" EOL, nb);
nb = printf("%.15i" EOL, i[n]);
printf("%d" EOL, nb);
++n;
}
nb = ft_printf("%.i %.i %.0i" EOL, i[7], i[8], i[9]);
printf("%d" EOL, nb);
nb = printf("%.i %.i %.0i" EOL, i[7], i[8], i[9]);
printf("%d" EOL, nb);
}
int main(void)
{
load();
return (0);
}