Code:
        if ( array[count] == 0 )
            count = MAX;               /* will exit for loop */
If you want to break a loop, use "break", not changing the loop variable - it can confuse the compiler, and is definitely harder to follow for humans.

--
Mats