aboutsummaryrefslogtreecommitdiff
path: root/c09/ex00
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-07-16 12:58:13 +0200
committerCharles <sircharlesaze@gmail.com>2019-07-16 12:58:13 +0200
commit14914f50c3de6c5444e13cf67db064b03c1c90ef (patch)
tree3ecf5a41b4541980ba0287a431681cd5ae25ad84 /c09/ex00
parent217bcb0d4e3ba60604921cb40d5a11a64f93cfc7 (diff)
downloadpiscine-14914f50c3de6c5444e13cf67db064b03c1c90ef.tar.gz
piscine-14914f50c3de6c5444e13cf67db064b03c1c90ef.tar.bz2
piscine-14914f50c3de6c5444e13cf67db064b03c1c90ef.zip
c09 passed, c10 start, exam00 and exam01
Diffstat (limited to 'c09/ex00')
-rw-r--r--c09/ex00/ft_strcmp.c4
-rw-r--r--c09/ex00/ft_strlen.c5
-rwxr-xr-xc09/ex00/libft_creator.sh2
3 files changed, 5 insertions, 6 deletions
diff --git a/c09/ex00/ft_strcmp.c b/c09/ex00/ft_strcmp.c
index 8870811..18f975a 100644
--- a/c09/ex00/ft_strcmp.c
+++ b/c09/ex00/ft_strcmp.c
@@ -6,11 +6,11 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/11 16:20:33 by cacharle #+# #+# */
-/* Updated: 2019/07/11 16:21:55 by cacharle ### ########.fr */
+/* Updated: 2019/07/16 09:37:13 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
-int ft_strcmp(char *s1, char *s2)
+int ft_strcmp(char *s1, char *s2)
{
while (*s1 == *s2 && *s1 && *s2)
{
diff --git a/c09/ex00/ft_strlen.c b/c09/ex00/ft_strlen.c
index 91e6948..fe5f4b7 100644
--- a/c09/ex00/ft_strlen.c
+++ b/c09/ex00/ft_strlen.c
@@ -6,11 +6,11 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/11 16:19:43 by cacharle #+# #+# */
-/* Updated: 2019/07/11 16:20:18 by cacharle ### ########.fr */
+/* Updated: 2019/07/16 09:36:56 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
-int ft_strlen(char *str)
+int ft_strlen(char *str)
{
int i;
@@ -19,4 +19,3 @@ int ft_strlen(char *str)
i++;
return (i);
}
-
diff --git a/c09/ex00/libft_creator.sh b/c09/ex00/libft_creator.sh
index 9c0aefa..796b263 100755
--- a/c09/ex00/libft_creator.sh
+++ b/c09/ex00/libft_creator.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-gcc -c ft_putchar.c ft_swap.c ft_putstr.c ft_strlen.c ft_strcmp.c
+gcc -Wall -Wextra -Werror -c ft_putchar.c ft_swap.c ft_putstr.c ft_strlen.c ft_strcmp.c
ar -rs libft.a ft_putchar.o ft_swap.o ft_putstr.o ft_strlen.o ft_strcmp.o
rm -f ft_putchar.o ft_swap.o ft_putstr.o ft_strlen.o ft_strcmp.o