Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: 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

> 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