Files
42_INT_08_philosophers/headers/philo_proto.h
2022-01-25 22:05:39 +01:00

19 lines
395 B
C

#ifndef PHILO_PROTO_H
# define PHILO_PROTO_H
// init.c
t_philo *init(int ac, char **av, pthread_t **id);
// exec.c
void *philo_exec(void *arg);
// generic.c
void init_time(t_philo *philo);
void update_time(t_philo *philo);
int diff_time(t_time old, struct timeval stime);
int is_dead(t_philo *philo, struct timeval stime);
int print_message(t_philo *philo, char *clr, char *msg);
#endif