*BSD News Article 37019


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:13868 comp.os.386bsd.misc:3742
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!news.adelaide.edu.au!gateway.dircsa.org.au!cleese.apana.org.au!apanix.apana.org.au!hart
From: hart@apanix.apana.org.au (Leigh Hart)
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.misc
Subject: Re: How UTTERLY Amazing! (Was Re: FreeBSD vs NetBSD)
Date: 16 Oct 94 01:53:36 GMT
Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines)
Lines: 27
Message-ID: <hart.782272416@apanix.apana.org.au>
References: <37fvk8$9mm@rivendell.apana.org.au> <37p5f2$kjl@cleese.apana.org.au>
NNTP-Posting-Host: seldon.apanix.apana.org.au

newton@cleese.apana.org.au (Mark Newton) writes:

>In article <37fvk8$9mm@rivendell.apana.org.au>, Phil Homewood (phil@rivendell.apana.org.au) wrote:

> > while(jesus) flame(jesus);

>That's a no-op:  Jesus is a *zero*, so the loop will never execute.

Ah yes, but neither of you looked at the function declaration for flame():

void flame(struct twit *);

So in reality, flame expects a pointer to struct twit, whereas phil only
passed the struct itself.  Lets rewrite that code for the pedants (mark):

while(&jesus) flame(&jesus);

While there's somewhere to flame, flame on!  :-)

Cheers

Leigh
--
| "By the time they had diminished | Leigh Hart                |
|  from 50 to 8, the other dwarves | <hart@eppie.apana.org.au> |
|  began to suspect 'Hungry' ..."  | C/- 195 Gilles Street     |
|   -- Gary Larson, "The Far Side" | Adelaide  SA  5006        |