swap() macro

Root Boy Jim rbj at icst-cmr
Tue Jun 10 19:45:16 AEST 1986


	Can someone construct a version that makes
	
	    int *a, *b;
	    swap (*a++,*b++);
	
	work right?
	
	          Paul
	          Schauble at MIT-Multics.arpa
	
Probably not. In general, macros don't work on arguments that have side effects.

	(Root Boy) Jim Cottrell		<rbj at cmr>
	PEGGY FLEMMING is stealing BASKET BALLS to feed the babies in VERMONT.



More information about the Comp.lang.c mailing list