commit
This commit is contained in:
19
C_Piscine_C_06/git/ex02/ft_rev_params.c
Normal file
19
C_Piscine_C_06/git/ex02/ft_rev_params.c
Normal 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);
|
||||||
|
}
|
||||||
8
C_Piscine_C_06/git/ex02/main.sh
Executable file
8
C_Piscine_C_06/git/ex02/main.sh
Executable 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
|
||||||
6
Makefile
6
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user