swap() macro

#Bill_Stewart wcs at ho95e.UUCP
Sun Jun 29 10:43:48 AEST 1986


In article <1201 at brl-smoke.ARPA> Schauble at MIT-MULTICS.ARPA writes:
>Can someone construct a version that makes
>    int *a, *b;
>    swap (*a++,*b++);
>work right?

I'm not sure I can define what "work right" means in a swap :-)
-- 
# Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs



More information about the Comp.lang.c mailing list