ok this is a very easy one that i just cant really get my head around at this late hour of the nite. i simply want to compact this code so as it will fit on the screen over maybe 2 or 3 lines. heres the code:
Code:
if(((fptr->code[a][0] >= '0') && (fptr->code[a][0] <= '9')) && ((fptr->code[a][1] >= '0') && (fptr->code[a][1] <= '9')) && ((fptr->code[a][2] >= '0') && (fptr->code[a][2] <= '9')) && ((fptr->code[a][3] >= '0') && (fptr->code[a][3] <= '9')))
{
check = TRUE;
}
i basically want it to look like this:
Code:
if(((fptr->code[a][0] >= '0') && (fptr->code[a][0] <= '9')) &&
((fptr->code[a][1] >= '0') && (fptr->code[a][1] <= '9')) &&
((fptr->code[a][2] >= '0') && (fptr->code[a][2] <= '9')) &&
((fptr->code[a][3] >= '0') && (fptr->code[a][3] <= '9')))
{
check = TRUE;
}
thanks for everyones help.