Re: comparison function for qsort() question



David Mathog wrote:

Any thoughts on whether the second function form would usually be faster, slower, or the same?

I forgot to mention, on gcc 4.1.2 on an opteron system the memcmp() form runs about 25% faster on a test with a sort of 125M words of 5 bytes each. So I knew that it worked better with _some_ compiler, I was just curious how common that was likely to be.

Regards,

David Mathog
.