Files
42_INT_08_philosophers/headers/philo_proto.h
2022-01-26 15:33:29 +01:00

36 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* philo_proto.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/26 15:27:13 by hulamy #+# #+# */
/* Updated: 2022/01/26 15:29:49 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PHILO_PROTO_H
# define PHILO_PROTO_H
// init.c
t_philo *init(int ac, char **av, pthread_t **id);
// pere_fouettard.c
int is_dead(t_philo *philo);
void launch_threads(t_philo *philo, pthread_t *id);
// exec.c
void *philo_exec(void *arg);
// utils.c
void init_time(t_philo *philo);
void update_time(t_philo *philo);
int diff_time(t_time old, struct timeval new);
int print_message(t_philo *philo, char *clr, char *msg);
// generic.c
int ft_atoi(const char *str);
#endif