aboutsummaryrefslogtreecommitdiff
path: root/philo_one/main.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-24 07:08:16 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-24 07:08:16 +0100
commit34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b (patch)
tree8597658d41e252bc22cd9abb9d596c929b0a1a68 /philo_one/main.c
downloadphilosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.tar.gz
philosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.tar.bz2
philosophers-34058c2901f18fd11a6e50e9fa8e3faefdcc6c7b.zip
Initial commit
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);
+}