-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_s_min_width_precision_load.c
40 lines (36 loc) · 1.42 KB
/
ft_printf_s_min_width_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_s_field_width_precision_load.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenamar <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/04 22:05:08 by abenamar #+# #+# */
/* Updated: 2023/05/02 21:44:40 by abenamar ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf_test.h"
static void load(void)
{
const char *s[9] = { NULL, "", "\rtest\b", "àéîüœ", "Hello World!", "0123456789", NULL, "", "123" };
int n;
int nb;
n = 0;
while (n < 6)
{
nb = ft_printf("%3.3s" EOL, s[n]);
printf("%d" EOL, nb);
nb = printf("%3.3s" EOL, s[n]);
printf("%d" EOL, nb);
++n;
}
nb = ft_printf("%10.s %20.0s %234.001s" EOL, s[6], s[7], s[8]);
printf("%d" EOL, nb);
nb = printf("%10.s %20.0s %234.001s" EOL, s[6], s[7], s[8]);
printf("%d" EOL, nb);
}
int main(void)
{
load();
return (0);
}