1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
philosopher/philo/philo_msg.h

31 lines
1.5 KiB
C
Raw Permalink Normal View History

2024-07-08 10:33:28 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* philo_msg.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/07 17:50:46 by adjoly #+# #+# */
/* Updated: 2024/08/13 10:19:13 by adjoly ### ########.fr */
2024-07-08 10:33:28 +02:00
/* */
/* ************************************************************************** */
#ifndef PHILO_MSG_H
# define PHILO_MSG_H
# define EATING_MSG "is eating\n"
# define THINK_MSG "is thinking\n"
# define SLEEP_MSG "is sleeping\n"
# define DIED_MSG "died\n"
# define FORK_MSG "has taken a fork\n"
# define ERR_MAX_PHIL "Too much philo < 200\n" // err 0
# define ERR_MAX_DIE_TIME "Time to die too long < INT_MAX\n" // err 1
# define ERR_MAX_EAT_TIME "Time to eat too long < INT_MAX\n" // err 2
# define ERR_MAX_SLEEP_TIME "Time to sleep too long < INT_MAX\n" // err 3
# define ERR_MAX_MEAL "Too much meal < 1000\n" // err 4
2024-08-12 20:52:02 +02:00
# define ERR_NB_ARG "Invalid number of args need to be 4 or 5\n" // err 5
# define ERR_ARG "Invalid argument\n"
2024-07-08 10:33:28 +02:00
#endif