Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!esosun!net1!sdcsvax!hp-sdd!ncr-sd!bigbang!blia!ted From: ted@blia.BLI.COM (Ted Marshall) Newsgroups: comp.sources.d Subject: Re: Multivol dumps core? Message-ID: <1325@blia.BLI.COM> Date: Tue, 16-Dec-86 14:04:54 EST Article-I.D.: blia.1325 Posted: Tue Dec 16 14:04:54 1986 Date-Received: Thu, 18-Dec-86 01:55:25 EST References: <403@vixie.UUCP> Organization: Britton Lee, Los Gatos, CA Lines: 14 Summary: This is valid C code In article <403@vixie.UUCP>, paul@vixie.UUCP (Paul Vixie Esq) writes: > 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... Sorry, but this not wrong. Look at K&R page 19: "Expressions connected by && or || are evaluated left to right and it is guaranteed that evaluation will stop as soon as the truth or falsehood is known." Of course, this doesn't help you find the bug (I'm a VMS programmer so I'm not familiar with multivol. Sorry.) Ted Marshall @ Britton Lee, Inc UUCP: ...!ucbvax!mtxinu!blia!ted