-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfdf.c
31 lines (27 loc) · 1.13 KB
/
fdf.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fdf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mpauw <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/12/01 10:31:52 by mpauw #+# #+# */
/* Updated: 2017/12/06 12:17:00 by mpauw ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void error(int code)
{
strerror(code);
exit(1);
}
int main(int argc, char **argv)
{
int width;
int height;
t_point *points;
if (argc != 2)
return (1);
points = handle_file(argv[1], &width, &height);
initialize(points, width);
}