-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0_philosophers.c
27 lines (24 loc) · 1.13 KB
/
0_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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 0_philosophers.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: anhigo-s <anhigo-s@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/16 23:48:39 by anhigo-s #+# #+# */
/* Updated: 2022/03/29 13:16:17 by anhigo-s ### ########.fr */
/* */
/* ************************************************************************** */
#include "philosophers.h"
int main(int argc, char **argv)
{
t_philo data_philo;
if (inspect_args(argc, argv))
{
data_philo = init_args(argv);
start_threads(&data_philo);
free_think(&data_philo);
return (EXIT_SUCCESS);
}
return (EXIT_FAILURE);
}