some norm and malloc protection
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user