Mail Archives: djgpp/1998/04/05/18:16:24
When ever I try to use a for loop in DJGPP with a char (or any type for
that matter), the loop never stops when I try to loop to the max value
that type can hold. For example
unsigned char index = 0;
unsigned char array[256];
for (index = 0; index < 256; index++)
array[index] = index;
This loop never stops, I've even tried..
for (index = 0; index <= 255; index++)
for (index = 0; index < 256; ++index)
for (index = 0; index <= 255; ++index)
And I need all 256 iterations for my programs to work.
Any sugestions?
Simz
tsim AT vegas DOT infi DOT net
- Raw text -