0
0
This commit is contained in:
2021-08-22 08:09:05 +02:00
parent e34e4258b8
commit fd4273e5ba
9 changed files with 37 additions and 72 deletions

View File

@@ -1,22 +0,0 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_point.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/20 10:17:09 by gbaconni #+# #+# */
/* Updated: 2021/08/20 12:05:50 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_POINT_H
# define FT_POINT_H
typedef struct s_point
{
int x;
int y;
} t_point;
void set_point(t_point *point);
#endif

View File

@@ -1,27 +0,0 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/20 10:26:50 by gbaconni #+# #+# */
/* Updated: 2021/08/20 10:34:14 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_point.h"
void set_point(t_point *point)
{
point->x = 42;
point->y = 21;
}
int main(void)
{
t_point point;
set_point(&point);
return (0);
}

View File

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