diff --git a/parsing.c b/parsing.c index 558c027..c6c7267 100644 --- a/parsing.c +++ b/parsing.c @@ -44,7 +44,7 @@ bool parsing(t_data *data, char **args, size_t n) return (1); } set_value(data, args, n); - if (data->nb_philos > 1) + if (data->nb_philos == 0) write(2, "Argument error !\n", 16); - return (data->nb_philos > 1); + return (data->nb_philos == 0); }