aboutsummaryrefslogtreecommitdiff
path: root/c02/main.c
blob: 2e088017e5a4434a30e7db07f5529b49e156ecba (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include <stdio.h>
#include <limits.h>
#include "ex00/ft_strcpy.c"
#include "ex01/ft_strncpy.c"
/*#include "ex02/ft_str_is_alpha.c"*/
/*#include "ex03/ft_str_is_numeric.c"*/
/*#include "ex04/ft_str_is_lowercase.c"*/
/*#include "ex05/ft_str_is_uppercase.c"*/
/*#include "ex06/ft_str_is_printable.c"*/
/*#include "ex07/ft_strupcase.c"*/
/*#include "ex08/ft_strlowercase.c"*/
#include "ex09/ft_strcapitalize.c"
#include "ex10/ft_strlcpy.c"
#include "ex11/ft_putstr_non_printable.c"

int main()
{
	/*char *last;*/
	/*char dest[13];*/
	/*char src[] = "aonjour asdf\0 asdf";*/
	/*last = ft_strcpy(dest, src);*/
	/*for (int i = 0; i < 13; i++)*/
		/*printf("%d ", dest[i]);*/
	/*printf("last %d", *last);*/
	/*printf("\n%s\n", dest);*/

	/*char ndest[10];*/
	/*char nsrc[20] = "bonjour jew\0";*/
	/*last = ft_strncpy(ndest, nsrc, sizeof ndest);*/
	/*for (int i = 0; i < sizeof ndest; i++)*/
		/*printf("%d ", ndest[i]);*/
	/*printf("dest %d, last %d", ndest, last);*/
	/*printf("\n%s\n", ndest);*/

	/*char salpha[] = "BONJour";*/
	/*char snalpha[] = "bonJour";*/
	/*printf("%d salpha\n", ft_str_is_alpha(salpha));*/
	/*printf("%d snalpha\n", ft_str_is_alpha(snalpha));*/

	/*char num[] = "0123456789";*/
	/*char nnum[] = "0123456789a";*/
	/*printf("%d num\n", ft_str_is_numeric(num));*/
	/*printf("%d nnum\n", ft_str_is_numeric(nnum));*/

	/*char low[] = "bonjour";*/
	/*char nlow[] = "bonjOUR";*/
	/*printf("%d low\n", ft_str_is_lowercase(low));*/
	/*printf("%d nlow\n", ft_str_is_lowercase(nlow));*/

	/*char up[] = "BONJOUR";*/
	/*char nup[] = "BonjOUR";*/
	/*printf("%d up\n", ft_str_is_uppercase(up));*/
	/*printf("%d nup\n", ft_str_is_uppercase(nup));*/

	/*char printable[] = "boq4523$$%@$!``~~;'[[=_";*/
	/*char nprintable[] = "as^?\bf89*0(\n\r";*/
	/*printf("%d printable\n", ft_str_is_printable(printable));*/
	/*printf("%d nprintable\n", ft_str_is_printable(nprintable));*/

	/*char toup[] = "bonjourJE6''";*/
	/*char *upped = ft_strupcase(toup);*/
	/*printf("%s\n", upped);*/

	/*char tolow[] = "bonJOURJE6''";*/
	/*char *lowered = ft_strlowcase(tolow);*/
	/*printf("%s\n", lowered);*/

	/*char tocap[1024] = "salut, comment tu vas ? 42mots quarante-deux; cinquante+et+un";*/
	/*ft_strcapitalize(tocap);*/
	/*printf("%s\n", tocap);*/

	/*char buf[40];*/
	/*char src[] = "bonjour qqq";*/
	/*printf("str len = %u", ft_strlcpy(buf, str, 40));*/

	/*char unp[10] = {10, 1, 2, 'a', 'g', '+', ' ', 20};*/
	/*ft_putstr_non_printable(unp);*/
	char unp2[10] = {'\xff'};
	for (int i = 0; i < 256; i++)
	{
		unp2[0] = (char)i;
		ft_putstr_non_printable(unp2);
	}
	ft_putstr_non_printable("Coucou\ntu vas bien ?");

	return 0;
}