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,29 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/09 10:45:18 by gbaconni #+# #+# */
/* Updated: 2021/08/09 10:49:16 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include <unistd.h>
void ft_swap(int *a, int *b);
int main(void)
{
int a;
int b;
a = 21;
b = 42;
printf("BEFORE: a=%d b=%d\n", a, b);
ft_swap(&a, &b);
printf("AFTER: a=%d b=%d\n", a, b);
return (0);
}