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    [W:0.075 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site