some norm and malloc protection

This commit is contained in:
hugogogo
2022-01-09 12:23:22 +01:00
parent 48118ae3ab
commit b93e8c5e22
5 changed files with 81 additions and 40 deletions

View File

@@ -1,8 +1,13 @@
#ifndef PHILO_PROTO_H
# define PHILO_PROTO_H
pthread_mutex_t mutex;
// init.c
t_philo *init(char **av, pthread_t **id);
t_philo *init(int ac, char **av, pthread_t **id);
// exec.c
void *philo_exec(void *arg);
#endif