input checker

This commit is contained in:
2026-01-08 12:58:15 +00:00
parent 9bc53094a9
commit 4cb2fd3244
5 changed files with 63 additions and 4 deletions

10
main.c
View File

@@ -6,14 +6,22 @@
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/08 18:32:35 by mteriier #+# #+# */
/* Updated: 2025/12/14 16:55:43 by dgaillet ### ########lyon.fr */
/* Updated: 2026/01/08 12:57:04 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
#include "parsing.h"
#include <unistd.h>
int main(int argc, char **argv)
{
if (!checker(argc, argv))
{
write(2, "Error !\n", 8);
return (1);
}
if (argc > 1)
test1(argc, argv);
return (0);