Allan Bruce wrote:
I have programmed my own sorts as macros in c, and just wondered if it was
worthwhile using them over the standard sorts.
Allan
Almost certainly not. The standard routines are much less likely to have
errors, are available everywhere (while your versions may have
non-portable parts), and are probably faster than yours. Besides that,
they are standard. Everyone recognizes them and knows what they mean.
Add to that the fact that macros are bad, and the standard routines fit
with the rest of the standard library framework, and there's really no
good reason to use your own routines, and a number of reasons not to.
-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.