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

@@ -1,2 +0,0 @@
**/main.c
**/main.sh

View File

@@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 13:12:43 by gbaconni #+# #+# */
/* Updated: 2021/08/05 13:17:47 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
int main(void)
{
void ft_putchar(char c);
ft_putchar('Z');
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

View File

@@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 13:12:05 by gbaconni #+# #+# */
/* Updated: 2021/08/05 13:17:31 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
int main(void)
{
void ft_print_alphabet(void);
ft_print_alphabet();
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

View File

@@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 13:14:21 by gbaconni #+# #+# */
/* Updated: 2021/08/05 13:17:07 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
int main(void)
{
void ft_print_reverse_alphabet(void);
ft_print_reverse_alphabet();
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

View File

@@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 13:15:56 by gbaconni #+# #+# */
/* Updated: 2021/08/05 13:16:46 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
int main(void)
{
void ft_print_numbers(void);
ft_print_numbers();
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

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

View File

@@ -0,0 +1,21 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 13:50:48 by gbaconni #+# #+# */
/* Updated: 2021/08/05 14:55:52 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
int main(void)
{
void ft_print_comb(void);
ft_print_comb();
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

View File

@@ -0,0 +1,21 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 17:38:55 by gbaconni #+# #+# */
/* Updated: 2021/08/05 17:39:00 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
int main(void)
{
void ft_print_comb2(void);
ft_print_comb2();
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

View File

@@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/05 18:07:44 by gbaconni #+# #+# */
/* Updated: 2021/08/06 11:48:27 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include <unistd.h>
int main(void)
{
void ft_putnbr(int nb);
ft_putnbr(-1);
write(1, "\n", 1);
ft_putnbr(0);
write(1, "\n", 1);
ft_putnbr(42);
write(1, "\n", 1);
ft_putnbr(2147483647);
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

View File

@@ -0,0 +1,29 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/06 09:41:51 by gbaconni #+# #+# */
/* Updated: 2021/08/06 11:32:04 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include <unistd.h>
int main(void)
{
void ft_print_combn(int n);
ft_print_combn(1);
write(1, "\n", 1);
ft_print_combn(2);
write(1, "\n", 1);
ft_print_combn(3);
write(1, "\n", 1);
ft_print_combn(4);
write(1, "\n", 1);
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