Article View: comp.sources.d
Article #2104Re: Multivol dumps core?
From: Peter Fales
Date: Tue, 16 Dec 1986 19:10
Date: Tue, 16 Dec 1986 19:10
13 lines
878 bytes
878 bytes
> In testdata.c, I found:
> ...
> if (no_eoln = (*argv[1] == '-' && *++argv[1] == 'n')) {
> ...
> Now, since C doesn't guarantee order of evaluation, this seems blatently
> wrong.
Kerhighan & Ritchie, p. 190: "Unlike &, && guarantees left-to-right
evaluation; moreover the second operand is not evaluated if if the
first operand is 0."
Peter Fales
ihnp4!ihlpl!psfales
Technical Details
Message-ID:
<1585@ihlpl.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!rutgers!clyde!cuae2!ihnp4!ihlpl!psfalesReferences:
<403@vixie.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!rutgers!clyde!cuae2!ihnp4!ihlpl!psfales From: psfales@ihlpl.UUCP (Peter Fales) Newsgroups: comp.sources.d Subject: Re: Multivol dumps core? Message-ID: <1585@ihlpl.UUCP> Date: Tue, 16-Dec-86 14:10:13 EST Article-I.D.: ihlpl.1585 Posted: Tue Dec 16 14:10:13 1986 Date-Received: Wed, 17-Dec-86 21:58:00 EST References: <403@vixie.UUCP> Organization: AT&T Bell Labs, Naperville, IL Lines: 13