diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-05 15:06:03 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-05 15:06:03 +0200 |
| commit | 473cf5d7576744b679b7a504232b5ebd4b5d689f (patch) | |
| tree | 6518e4fd26bf4584e5a2d72b9e1289473bce76da /common/args.c | |
| parent | a237321ee53f44793ebc8b9db26b743f092b5e40 (diff) | |
| download | philosophers-473cf5d7576744b679b7a504232b5ebd4b5d689f.tar.gz philosophers-473cf5d7576744b679b7a504232b5ebd4b5d689f.tar.bz2 philosophers-473cf5d7576744b679b7a504232b5ebd4b5d689f.zip | |
Norming
Diffstat (limited to 'common/args.c')
| -rw-r--r-- | common/args.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/args.c b/common/args.c index 6392f22..e55f004 100644 --- a/common/args.c +++ b/common/args.c @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/08 23:12:55 by cacharle #+# #+# */ -/* Updated: 2020/09/30 10:14:24 by cacharle ### ########.fr */ +/* Updated: 2020/10/05 14:26:40 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,7 +15,10 @@ bool parse_args(t_philo_args *args, int argc, char **argv) { if (argc != 5 && argc != 6) - return h_err(false, "Usage: %s philosophers_num death_timeout eat_timeout sleep_timeout [meal_num]", argv[0]); + { + return (h_err(false, "Usage: %s philosophers_num death_timeout" + "eat_timeout sleep_timeout [meal_num]", argv[0])); + } if ((args->philo_num = h_atou_strict(argv[1])) == -1 || (args->timeout_death = h_atou_strict(argv[2])) == -1 || (args->timeout_eat = h_atou_strict(argv[3])) == -1 |
