update norme et check max number et mmin number

This commit is contained in:
YANNIS
2025-02-22 18:33:11 +01:00
parent fe4bc4b980
commit 7867244f63
3 changed files with 22 additions and 8 deletions
+16 -1
View File
@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* isdigit_token.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/22 18:27:48 by yantoine #+# #+# */
/* Updated: 2025/02/22 18:28:45 by yantoine ### ########.fr */
/* */
/* ************************************************************************** */
#include "miniRT.h"
int isdigit_token(char **tokens)
@@ -11,7 +23,10 @@ int isdigit_token(char **tokens)
j = -1;
while (tokens[i][++j])
{
if (!ft_isdigit(tokens[i][j]) && tokens[i][j] != '\n' && tokens[i][j] != '-' && tokens[i][j] != ',')
if (!ft_isdigit(tokens[i][j]) \
&& tokens[i][j] != '\n' \
&& tokens[i][j] != '-' \
&& tokens[i][j] != ',')
{
printf("%c\n", tokens[i][j]);
printf("%p\n", tokens[i]);