> Given a pointer to an array of nibbles and a length, how do I iterate > through the array?
for(i=0; i<bitsizeof(a); i++){ s += a[i]; } --correction, that was for an array of packed bools. For nybbles, bitsizeof(a)/4. There are various games one can play, and quibbles one can make, all of which should have been so blitheringly obvious it should not have ever been necessary to have this discussion at all. Similarly, when some twerp complained x=mul(a,b) would be unacceptable because "mul" was too likely to be a name already used by somebody... seriously? You're really unable to figure out how to deal with that without me telling you? It just boggles my mind that this stuff comes back at me for hours and hours. -- Warren D. Smith http://RangeVoting.org <-- add your endorsement (by clicking "endorse" as 1st step)