Efficient swap() (NOT AGAIN, DAMMIT!)

Henry Spencer henry at zoo.toronto.edu
Sun Jan 27 21:42:04 AEST 1991


In article <1991Jan13.050236.11634 at ux1.cso.uiuc.edu> heal at ux1.cso.uiuc.edu (Loren Heal) writes:
>Here is a one-line C macro, swap()...

This comes up every few months.  See the Frequently-Asked-Questions list.

It's both unsafe and inefficient, by the way, and as an art form it lacks
charm.  Especially on the tenth repetition.  Is there some special reason
why you posted it?
-- 
If the Space Shuttle was the answer,   | Henry Spencer at U of Toronto Zoology
what was the question?                 |  henry at zoo.toronto.edu   utzoo!henry



More information about the Comp.lang.c mailing list