-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
31 lines (28 loc) · 1.16 KB
/
main.c
File metadata and controls
31 lines (28 loc) · 1.16 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jagarcia <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/24 19:08:50 by jagarcia #+# #+# */
/* Updated: 2017/12/05 11:17:00 by jagarcia ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
int main(int argc, const char **argv)
{
int *pos;
(void)argc;
if (argc != 2)
{
ft_putstr("usage: ./fillit sample.fillit\n");
return (0);
}
pos = ft_reader(argv[1]);
if (pos)
ft_putstr((const char *)ft_filler(pos));
else
ft_putstr("error\n");
return (0);
}