files dans srcs sans dossier

This commit is contained in:
Hugo LAMY
2020-02-10 10:25:04 +01:00
parent e9c7619e97
commit 52eaaddb0d
76 changed files with 10 additions and 12 deletions

View File

@@ -4,11 +4,7 @@
NAME = libft.a
CC = gcc
VPATH = srcs/ \
srcs/part1/ \
srcs/part2/ \
srcs/bonus/ \
srcs/add/
VPATH = srcs/
IDIR = .
_DEP = libft.h
@@ -133,7 +129,7 @@ fclean: clean
re: fclean all
.PHONY: bonus clean fclean re all
.PHONY: clean fclean re all

View File

@@ -66,6 +66,8 @@ int main()
{
char touppercase(unsigned int, char);
printf("ITOA :\n");
print_ft_itoa(1338);
print_ft_itoa(0);
print_ft_itoa(-1);
@@ -76,7 +78,7 @@ int main()
print_ft_itoa(-2147483648);
print_ft_itoa('t');
printf("\n");
printf("\nSPLIT :\n");
print_ft_split(" dfs zfe f ez f fez ", ' ');
print_ft_split(NULL, 0);
@@ -90,7 +92,7 @@ int main()
print_ft_split("zd\nazd\nds", '\n');
print_ft_split(" ", ' ');
printf("\n");
printf("\nJOIN :\n");
print_ft_strjoin("alpha", "bravo");
print_ft_strjoin("", "");
@@ -102,7 +104,7 @@ int main()
print_ft_strjoin("sdffez", NULL);
print_ft_strjoin(" ", " ");
printf("\n");
printf("\nMAPI :\n");
print_ft_strmapi("truc", touppercase);
print_ft_strmapi("truc", NULL);
@@ -114,7 +116,7 @@ int main()
print_ft_strmapi("\0", touppercase);
print_ft_strmapi("f f f f", touppercase);
printf("\n");
printf("\nSUB :\n");
print_ft_substr("zeff", 3, 4);
print_ft_substr(NULL, 1, 1);
@@ -128,7 +130,7 @@ int main()
print_ft_substr("gzrgzgb zeez", 1123238713, 2873981730);
print_ft_substr("gzrgzgb zeez", 1, 2873981730);
printf("\n");
printf("\nTRIM :\n");
print_ft_strtrim(" stmr trim ", "m ");
print_ft_strtrim(" ", " ");
@@ -141,7 +143,7 @@ int main()
print_ft_strtrim(" e f zfzelelijz ", " ");
print_ft_strtrim("cccccccccccccccccccc", "c");
printf("\n");
printf("\nPUTNBR :\n");
print_ft_putnbr_fd(52, 1);
print_ft_putnbr_fd(2147483647, 1);