Re: true & false

Miquel van Smoorenburg (miquels@cistron.nl)
5 Apr 1999 23:40:04 +0200


In article <cistron.Pine.LNX.4.10.9904051713470.4451-100000@tahallah.demon.co.uk>,
Alex Buell <alex.buell@tahallah.demon.co.uk> wrote:
>/* true.c */
> return 1;
>
>/* false.c */
> return 0;
>
>Now can we end this silly true/false war please?

Well, for starters, you got the exit values wrong. True is 0. Plus,
this is not portable, you need to use exit(). I've been told some
very old SunOS versions ignore the return value from main().

Mike.

-- 
Indifference will certainly be the downfall of mankind, but who cares?

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/