「✨」 feat: put error when unintended char is in args

This commit is contained in:
KeyZox committed 2024-08-13 10:36:26 +02:00
1 parent 36bda7d5c0
commit a101ff72de
4 files changed
+47 -3

No files matched your search

+3 -1
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);
}