k, thanks.Originally posted by Prelude
>I don't have access to the microsoft C compiler, but GCC compiles it with no errors.
I was in a hurry and didn't test it on GCC. However, VC++ 6 didn't like your use of max as a macro, nor your use of snprintf (which is only standard in C99). However, it is fast now that I've tested it, but it has a few problems with long strings of 0's. I'll update the scores.