mise en page pour rendu, et annule philo inversees car pbm 610 200 100
This commit is contained in:
38
philo/philo_proto.h
Normal file
38
philo/philo_proto.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* philo_proto.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/01/26 15:27:13 by hulamy #+# #+# */
|
||||
/* Updated: 2022/01/30 15:13:21 by hulamy ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PHILO_PROTO_H
|
||||
# define PHILO_PROTO_H
|
||||
|
||||
// init.c
|
||||
t_philo *init(int ac, char **av, pthread_t **id);
|
||||
|
||||
// launch.c
|
||||
void launch(t_philo *philo, 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_philo *philo, struct timeval *new);
|
||||
int print_message(t_philo *philo, char *clr, char *msg);
|
||||
|
||||
// utils.c
|
||||
int ft_isdigit_2d_arr(char **str);
|
||||
size_t ft_strlen(char *str);
|
||||
int ft_strncmp(char *s1, char *s2, size_t n);
|
||||
int ft_int_overflow(char *str);
|
||||
int ft_atoi(const char *str);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user