This commit is contained in:
Guy Baconniere committed 2021-08-26 12:00:00 +02:00
1 parent 5bc1009a3d
commit b2a5ed52a5
41 files changed
+657 -60

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -4
View File
@@ -1,6 +1,4 @@
#!/bin/sh
rm -f *.o libft.a
gcc -Wall -Wextra -Werror -c *.c
ar -cq libft.a *.o
#ar -t libft.a
#rm -f *.o
gcc -Wall -Wextra -Werror -c ft_putchar.c ft_swap.c ft_putstr.c ft_strlen.c ft_strcmp.c
ar -rcs libft.a ft_putchar.o ft_swap.o ft_putstr.o ft_strlen.o ft_strcmp.o
+3 -1
View File
@@ -8,7 +8,9 @@ echo
sh libft_creator.sh
rm -f *.o
echo
echo $(basename $PWD):
gcc -Wall -Wextra -Werror -o a.out -L. -lft main.c
ar -t libft.a
echo
echo $(basename $PWD):
./a.out "$@"
rm -f a.out
+1 -1
View File
@@ -6,7 +6,7 @@
# By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/08/22 17:28:57 by gbaconni #+# #+# #
# Updated: 2021/08/22 18:12:53 by gbaconni ### ########.fr #
# Updated: 2021/08/26 11:41:39 by gbaconni ### ########.fr #
# #
# **************************************************************************** #
+2 -2
View File
@@ -6,7 +6,7 @@
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/22 18:14:04 by gbaconni #+# #+# */
/* Updated: 2021/08/26 09:53:30 by gbaconni ### ########.fr */
/* Updated: 2021/08/26 11:46:51 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -75,7 +75,7 @@ char *ft_copy(char *str, int size)
if (size > 0)
ft_strncpy(result, str, size);
else
result[0] = '\0';
result = 0;
return (result);
}
+1 -1
View File
@@ -6,7 +6,7 @@
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/18 10:50:59 by gbaconni #+# #+# */
/* Updated: 2021/08/25 14:11:02 by gbaconni ### ########.fr */
/* Updated: 2021/08/26 11:45:37 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */