checker erreur limite de config

This commit is contained in:
YANNIS
2025-02-22 18:19:02 +01:00
parent 660d18d859
commit fe4bc4b980
15 changed files with 89 additions and 50 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "miniRT.h"
int isdigit_token(char **tokens)
{
int i;
int j;
i = -1;
while (tokens[++i])
{
j = -1;
while (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]);
return (0);
}
}
}
return (1);
}