Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: structure enhancements Message-ID: <6579@brl-smoke.ARPA> Date: Mon, 19-Oct-87 08:33:49 EDT Article-I.D.: brl-smok.6579 Posted: Mon Oct 19 08:33:49 1987 Date-Received: Tue, 20-Oct-87 02:06:46 EDT References: <112@teletron.UUCP> <11225@orchid.waterloo.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 Keywords: structure comparison In article <11225@orchid.waterloo.edu> datanguay@watbun.waterloo.edu (David Tanguay) writes: >What do you do with unions? >Otherwise, you could use memcmp(). No, except for a few fortunate implementations. Structs may contain "holes" with indeterminate contents. Serial byte-wise comparison does not work right for most floating-point formats nor for integers on a little-endian architecture.