ft_isdigit_str should take + or -- at start of string
This commit is contained in:
parent
0ebb29a918
commit
e1a01cbdfd
@ -6,7 +6,7 @@
|
||||
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
||||
/* +#+ */
|
||||
/* Created: 2025/02/20 15:40:24 by whaffman #+# #+# */
|
||||
/* Updated: 2025/02/26 16:19:31 by whaffman ######## odam.nl */
|
||||
/* Updated: 2025/03/03 14:45:48 by whaffman ######## odam.nl */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -14,6 +14,8 @@
|
||||
|
||||
int ft_isdigit_str(char *str)
|
||||
{
|
||||
if(*str == '-' || *str == '+')
|
||||
str++;
|
||||
while (*str)
|
||||
{
|
||||
if (!ft_isdigit(*str))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user