1
0

」 feat: put error when unintended char is in args

This commit is contained in:
2024-08-13 10:36:26 +02:00
parent 36bda7d5c0
commit a101ff72de
4 changed files with 47 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/07 16:12:20 by adjoly #+# #+# */
/* Updated: 2024/08/12 19:38:58 by adjoly ### ########.fr */
/* Updated: 2024/08/13 10:22:30 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -28,6 +28,8 @@ bool print_err(uint8_t error)
printf(ERR_MAX_MEAL);
else if (error == 5)
printf(ERR_NB_ARG);
else if (error == 6)
printf(ERR_ARG);
return (true);
}