Hi, I'm having a problem using GCC 3.4.2, I'm getting 2 warnings at these lines:
int check_format(char array[]){
int i= 0;
-------->while(array[i]!='\0'&&array[i]!='\n'){
--------->if( (!isdigit(array[i])) && (array[i]!=' ') && (array[i]!='-') && (count==9 && array[i]!='X') )
program.c:50: warning: subscript has type `char'
program.c:53: warning: subscript has type `char'
On GCC 4.1.2 it compiles fine, but I need it to work on both. Do you have any idea on how to fix this?
Thanks in advance.