lkml.org 
[lkml]   [1999]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: true & false
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2011 Jasper Spaans