To curse or not to curse

Guy Harris guy at auspex.auspex.com
Thu Jun 29 04:05:57 AEST 1989


 >  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....



More information about the Comp.unix.questions mailing list