-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_percent_conversion_load.c
61 lines (57 loc) · 1.7 KB
/
ft_printf_percent_conversion_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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_percent_conversion_load.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenamar <abenamar@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/04 23:26:44 by abenamar #+# #+# */
/* Updated: 2023/04/27 06:26:10 by abenamar ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf_test.h"
static void load(void)
{
int nb;
/* 1 */
nb = ft_printf("%%" EOL);
printf("%d" EOL, nb);
/* 2 */
nb = printf("%%" EOL);
printf("%d" EOL, nb);
/* 3 */
nb = ft_printf(" %%" EOL);
printf("%d" EOL, nb);
/* 4 */
nb = printf(" %%" EOL);
printf("%d" EOL, nb);
/* 5 */
nb = ft_printf("%% " EOL);
printf("%d" EOL, nb);
/* 6 */
nb = printf("%% " EOL);
printf("%d" EOL, nb);
/* 7 */
nb = ft_printf(" %% " EOL);
printf("%d" EOL, nb);
/* 8 */
nb = printf(" %% " EOL);
printf("%d" EOL, nb);
/* 9 */
nb = ft_printf("test%%test" EOL);
printf("%d" EOL, nb);
/* 10 */
nb = printf("test%%test" EOL);
printf("%d" EOL, nb);
/* 11 */
nb = ft_printf("%% %%%%%% %%" EOL);
printf("%d" EOL, nb);
/* 12 */
nb = printf("%% %%%%%% %%" EOL);
printf("%d" EOL, nb);
}
int main(void)
{
load();
return (0);
}