Re: true & false

Steve VanDevender (stevev@efn.org)
Mon, 5 Apr 1999 13:41:26 -0700 (PDT)


Alexander L. Belikoff writes:
> Alex Buell <alex.buell@tahallah.demon.co.uk> writes:
>
> > /* true.c */
> > int main(void)
> > {
> > return 1;
> > }
> >
> > /* false.c */
> > int main(void)
> > {
> > return 0;
> > }
> >
>
> I believe, you have to use exit(EXIT_{SUCCESS,FAILURE}) instead of
> 'return' for POSIX compliance...

Especially if you want to get the exit codes right. Hint: C's
true and false values are not the same as UNIX's
true and false exit code values.

-
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/