Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: typeof isn't enough to define swap correctly Message-ID: <8420@mimsy.UUCP> Date: Sat, 5-Sep-87 01:09:22 EDT Article-I.D.: mimsy.8420 Posted: Sat Sep 5 01:09:22 1987 Date-Received: Sat, 5-Sep-87 23:00:11 EDT References: <557@rocky.STANFORD.EDU> <1880@sol.ARPA> <8415@mimsy.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 13 In article <8415@mimsy.UUCP> I included the structure assignments > __t = *__a; \ > *__a = *__b; \ > *__b = __t; \ These may fail due to alignment constraints; if so, changing them to calls to memcpy or bcopy would work. But then, that would eliminate much of the purpose of the macro in the first place. Well, I did say I did not recommend it. . . . -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris