-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.c
59 lines (51 loc) · 1.82 KB
/
test.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: elel-yak <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/22 18:16:25 by elel-yak #+# #+# */
/* Updated: 2022/10/24 21:48:41 by elel-yak ### ########.fr */
/* */
/* ************************************************************************** */
#include"libft.h"
// void func(char * const str)
// {
// str++;
// }
int main(void)
{
// printf("%s\n", "42\n");
// printf("%s\n", ft_substr("hello\n", 0, ULONG_MAX));
// printf("%s\n", "42");
// printf("%s\n", ft_substr("hello\n", 0, 9223372036854775807));
// printf("%s\n", "42");
// printf("%s\n", ft_substr("hello", 0, 18446744073709551615));
// printf("%s\n", ft_substr("hello\n", 0, -1));
// size_t a;
// a = -1;
// printf("%lu", a);
// }
// int main(){
// char src[] = "hola";
// char *dest;
// dest = src + 1;
// ft_memmove(src, dest, 42);
// printf("%s", dest);
// }
// unsigned char x = 0;
// unsigned char y = 1;
// printf("%u\n", x - y);
// char z[] = "dd";
// char s[] = "hello 42";
// printf("%zu\n", ft_strlcat(z, s, 5));
// char z[] = "abcdef";
// char s[] = "abcdef";
// char *ret = ft_strjoin(z, s);
// printf("%s\n", ret);
char str[] = "oussama";
func(str);
printf("%s", str);
return (0);
}