Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: To curse or not to curse Message-ID: <1853@auspex.auspex.com> Date: 28 Jun 89 18:05:57 GMT References: <36@iisat.UUCP> <10800027@bradley> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 12 > Wouldn't this work just as well: > >#ifdef STRUCTURE_ASST > t = o; >#else > (void) memcpy((char *) &t, (char *) &o, sizeof(t)); >#endif Not if your implementation doesn't have "memcpy", which was added to AT&T's UNIX C library *after* they added structure assignment to their compiler....