0
0
This commit is contained in:
2021-08-17 08:36:57 +02:00
parent 229fd45f7e
commit d05f0539f5
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include <unistd.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
int size;
int i;
i = argc;
while (argc > 0 && --i)
{
size = 0;
while (argv[i][++size] != '\0')
continue ;
write(1, argv[i], size);
write(1, "\n", 1);
}
return (0);
}

View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -e
#norminette -R CheckForbiddenSourceHeader ft_*.c
norminette -R CheckForbiddenSourceHeader
gcc -Wall -Wextra -Werror -o a.out *.c
echo $(basename $PWD):
./a.out "$@"
rm -f a.out

View File

@@ -1,5 +1,11 @@
sync: sync:
@git add -A
@git status
@git commit -m 'commit'
@git push
42:
@rsync --exclude .git --exclude .gitignore --exclude .DS_Store -av ~/Piscine/ . @rsync --exclude .git --exclude .gitignore --exclude .DS_Store -av ~/Piscine/ .
@git add -A @git add -A
@git status @git status