Mail Archives: djgpp/1998/04/05/19:17:13
Simz wrote:
> unsigned char index = 0;
> unsigned char array[256];
> for (index = 0; index < 256; index++)
> array[index] = index;
Iterate with something other than a char. An unsigned char can hold
values between 0 and 255 inclusive, so these conditions will _always_ be
satisfied.
int index;
for (index = 0; index < 256; index++)
...
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm:+37.20.07/-121.53.38
\
"I've got the fever for the / flavor of a cracker"
/ Ice Cube
- Raw text -