Skip to content

Commit

Permalink
fixing argc itens validation
Browse files Browse the repository at this point in the history
  • Loading branch information
biralavor committed Jul 7, 2024
1 parent c03257d commit f324062
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions program_to_test/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/09 18:34:31 by umeneses #+# #+# */
/* Updated: 2024/07/05 13:09:05 by umeneses ### ########.fr */
/* Updated: 2024/07/07 10:45:00 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -18,12 +18,7 @@ int main(int argc, char **argv)
t_stack *stack_b;

if (argc < 2)
ft_error_msg("1.Not enough arguments.");
if (argc == 2)
{
if (ft_argv_validation(argv) == true)
return (EXIT_SUCCESS);
}
return (0);
stack_a = NULL;
stack_b = NULL;
stack_a = ft_lts_buildstack_argv(&stack_a, argv);
Expand Down

0 comments on commit f324062

Please sign in to comment.