Return on wrong argc
This commit is contained in:
parent
686c98f607
commit
830f860e02
|
@ -6,7 +6,7 @@
|
|||
/* By: jtorrez- <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/18 20:15:26 by jtorrez- #+# #+# */
|
||||
/* Updated: 2023/03/19 18:07:42 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/19 18:18:18 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -33,6 +33,7 @@ int main(int argc, char *argv[])
|
|||
ft_putstr("Usage: ");
|
||||
ft_putstr(argv[0]);
|
||||
ft_putstr(" [WIDTH HEIGHT]\n");
|
||||
return (1);
|
||||
}
|
||||
if (argc == 3)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue