Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 25 Jan 2002 01:13:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 25 Jan 2002 01:13:37 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:20195 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id convert rfc822-to-8bit; Fri, 25 Jan 2002 01:13:22 -0500 Date: Fri, 25 Jan 2002 01:13:21 -0500 (EST) From: Alexander Viro To: Xavier Bestel cc: timothy.covell@ashavan.org, Robert Love , Oliver Xymoron , "Richard B. Johnson" , Jeff Garzik , Linux Kernel Mailing List Subject: Re: RFC: booleans and the kernel In-Reply-To: <1011914865.2636.16.camel@bip> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=KOI8-R Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 25 Jan 2002, Xavier Bestel wrote: > le sam 26-01-2002 ? 00:09, Timothy Covell a ?crit : > > #include > > > > int main() > > { > > char x; > > > > if ( x ) > > { > > printf ("\n We got here\n"); > > } > > else > > { > > // We never get here > > printf ("\n We never got here\n"); > > } > > exit (0); > > } > > covell@xxxxxx ~>gcc -Wall foo.c > > foo.c: In function `main': > > foo.c:17: warning: implicit declaration of function `exit' > > I'm lost. What do you want to prove ? (Al Viro would say you just want > to show you don't know C ;) > And why do you think you never get there ? I suspect that our, ah, Java-loving friend doesn't realize that '\0' is a legitimate value of type char... BTW, he's got a funny compiler - I would expect at least a warning about use of uninitialized variable. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/