Change limits

This commit is contained in:
Timo Schmidt 2023-03-19 23:14:38 +01:00
parent 1e0ac10d42
commit de26c5ebb4
1 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
/* By: jtorrez- <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/18 20:15:26 by jtorrez- #+# #+# */
/* Updated: 2023/03/19 19:30:51 by tischmid ### ########.fr */
/* Updated: 2023/03/19 23:14:26 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
@ -40,10 +40,10 @@ int main(int argc, char *argv[])
width = ft_atoi(argv[1]);
height = ft_atoi(argv[2]);
}
if (width < 0 || width > 200)
ft_putstr("Width must be in the range of 0 to 200\n");
else if (height < 0 || height > 100)
ft_putstr("Height must be in the range of 0 to 100\n");
if (width < 0 || width > 1000)
ft_putstr("Width must be in the range of 0 to 1000\n");
else if (height < 0 || height > 1000)
ft_putstr("Height must be in the range of 0 to 1000\n");
else
rush(width, height);
return (0);