aboutsummaryrefslogtreecommitdiff
path: root/philo_one/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'philo_one/main.c')
-rw-r--r--philo_one/main.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/philo_one/main.c b/philo_one/main.c
new file mode 100644
index 0000000..3bb1181
--- /dev/null
+++ b/philo_one/main.c
@@ -0,0 +1,26 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* main.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/11/24 05:53:02 by cacharle #+# #+# */
+/* Updated: 2019/11/24 06:35:10 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "philo_one.h"
+
+int main(int argc, char **argv)
+{
+ if (argc != 5 || argc != 6)
+ return (1);
+ int philo_nb = ft_atoi(argv[1]);
+ int death_timer = ft_atoi(argv[2]);
+ int eat_timer = ft_atoi(argv[3]);
+ int sleep_timer = ft_atoi(argv[4]);
+ if (argc == 6)
+ int eat_nb = ft_atoi(argv[5]);
+ return (0);
+}