25 lines
468 B
C
25 lines
468 B
C
#ifndef PHILO_HEADER_H
|
|
# define PHILO_HEADER_H
|
|
|
|
# include <stdlib.h>
|
|
# include <unistd.h>
|
|
# include <pthread.h>
|
|
# include <sys/time.h>
|
|
# include <stdio.h>
|
|
|
|
|
|
typedef struct s_all
|
|
{
|
|
int number_of_philosophers;
|
|
int time_to_die;
|
|
int time_to_eat;
|
|
int time_to_sleep;
|
|
int number_of_times_each_philosopher_must_eat;
|
|
} t_all;
|
|
|
|
void *ft_calloc(size_t num, size_t size);
|
|
t_all *structalloc_and_bzero(void);
|
|
int parse_and_check_values(char **argv, int quantity);
|
|
|
|
#endif
|