0
0

Add main.* and remove .gitignore

This commit is contained in:
2021-08-16 08:26:30 +02:00
parent a808b91a50
commit 44692816d5
85 changed files with 1352 additions and 30 deletions

View File

@@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/09 14:22:56 by gbaconni #+# #+# */
/* Updated: 2021/08/09 14:42:03 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include <unistd.h>
void ft_sort_int_tab(int *tab, int size);
int main(void)
{
int tab[4];
tab[0] = 31;
tab[1] = 21;
tab[2] = 7;
tab[3] = 12;
printf("%d,%d,%d,%d\n", tab[0], tab[1], tab[2], tab[3]);
ft_sort_int_tab(tab, 4);
printf("%d,%d,%d,%d\n", tab[0], tab[1], tab[2], tab[3]);
return (0);
}

View File

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