-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_util.c
21 lines (19 loc) · 1.04 KB
/
init_util.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* init_util.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wlalaoui <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/12 16:48:41 by wlalaoui #+# #+# */
/* Updated: 2024/01/12 16:51:29 by wlalaoui ### ########.fr */
/* */
/* ************************************************************************** */
#include "philo.h"
void init_loop(t_data *data, int i)
{
data->ph_l[i].curr_time = 0;
data->ph_l[i].i = i + 1;
data->ph_l[i].ate_c = 0;
data->ph_l[i].args = &data->args;
}