Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DjoykeAbyah committed May 23, 2023
1 parent c2221be commit 0cb73cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions checks.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: dreijans <[email protected]> +#+ */
/* +#+ */
/* Created: 2023/05/22 17:17:58 by dreijans #+# #+# */
/* Updated: 2023/05/22 20:02:10 by dreijans ######## odam.nl */
/* Updated: 2023/05/23 11:52:44 by dreijans ######## odam.nl */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -78,15 +78,15 @@ void ft_string_check(char *argv)
while (argv[i])
{
if (dot > 1)
ft_exit("input number 1", 1);
ft_exit("input number, error 1", 1);
if (sign > 1)
ft_exit("input number 2", 1);
ft_exit("input number, error 2", 1);
if (argv[i] == '.' && !ft_isdigit(argv[i + 1]))
ft_exit("input number 3", 1);
ft_exit("input number, error 3", 1);
if ((argv[i] == '-' || argv[i] == '+') && !ft_isdigit(argv[i + 1]))
ft_exit("intput number 4", 1);
ft_exit("intput number, error 4", 1);
if (!ft_sign_dot_num(argv))
ft_exit("input number 5", 1);
ft_exit("input number, error 5", 1);
i++;
}
}
Expand Down
2 changes: 1 addition & 1 deletion fractol.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: dreijans <[email protected]> +#+ */
/* +#+ */
/* Created: 2023/05/01 15:57:11 by dreijans #+# #+# */
/* Updated: 2023/05/22 19:49:52 by dreijans ######## odam.nl */
/* Updated: 2023/05/23 12:15:10 by dreijans ######## odam.nl */
/* */
/* ************************************************************************** */

Expand Down

0 comments on commit 0cb73cd

Please sign in to comment.