From owner-freebsd-current Tue Oct 10 16:28:34 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id QAA09615 for current-outgoing; Tue, 10 Oct 1995 16:28:34 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id QAA09609 for ; Tue, 10 Oct 1995 16:28:28 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id JAA10262; Wed, 11 Oct 1995 09:21:24 +1000 Date: Wed, 11 Oct 1995 09:21:24 +1000 From: Bruce Evans Message-Id: <199510102321.JAA10262@godzilla.zeta.org.au> To: pst@shockwave.com, wollman@lcs.mit.edu Subject: Re: tail dumps core Cc: Kai.Vorma@hut.fi, ache@astral.msk.su, current@freebsd.org, terry@lambert.org Sender: owner-current@freebsd.org Precedence: bulk > memset(&i, 0, sizeof i); > if (i == 0) { > printf("your machine is normal\n"); > } else { > printf("your machine is really weird, but allowed by the" > " C standard\n"); > } >How could this possibly be allowed by the C standard? I'm utterly >confused. Anything not disallowed by the standard is allowed. There doesn't seem to be anything to stop a perverse implementation from storing (e.g.) 0 as 1 and 1 as 0. Bruce