-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphilosophers.c
28 lines (25 loc) · 1.11 KB
/
philosophers.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* philosophers.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rtavabil <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/16 12:27:43 by rtavabil #+# #+# */
/* Updated: 2024/03/21 18:38:51 by rtavabil ### ########.fr */
/* */
/* ************************************************************************** */
#include "philosophers.h"
int main(int argc, char **argv)
{
t_args args;
if (argc == 5 || argc == 6)
{
set_args(argv, &args);
init(&args);
algorithm(&args);
ft_free(&args);
}
else
write(2, "Invalid number of arguments\n", 29);
}