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,23 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 13:18:40 by gbaconni #+# #+# */
/* Updated: 2021/08/05 13:48:41 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
int main(void)
{
void ft_is_negative(int n);
ft_is_negative(-42);
ft_is_negative(42);
ft_is_negative(0);
return (0);
}

View File

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