From 7a5f4a91bdea79aa17c54c544523ebb01f09907f Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 4 Jul 2019 21:56:50 +0200 Subject: c02 ex11 mindfuck solved, c02 test --- c02/ex03/ft_str_is_numeric.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'c02/ex03') diff --git a/c02/ex03/ft_str_is_numeric.c b/c02/ex03/ft_str_is_numeric.c index b73450e..83ad454 100644 --- a/c02/ex03/ft_str_is_numeric.c +++ b/c02/ex03/ft_str_is_numeric.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/03 19:26:04 by cacharle #+# #+# */ -/* Updated: 2019/07/03 19:39:25 by cacharle ### ########.fr */ +/* Updated: 2019/07/04 10:31:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,7 +18,10 @@ int is_between(char start, char end, char subject) int ft_str_is_numeric(char *str) { while (*str != '\0') + { if (!is_between('0', '9', *str)) return (0); + str++; + } return (1); } -- cgit