Re: true & false

Alex Buell (alex.buell@tahallah.demon.co.uk)
Mon, 5 Apr 1999 20:57:57 +0100 (GMT)


On 5 Apr 1999, Alexander L. Belikoff wrote:

> I believe, you have to use exit(EXIT_{SUCCESS,FAILURE}) instead of
> 'return' for POSIX compliance...

Ooh. I forgot about POSIX. :o/

Here's the revised files

-- true.c --
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
return exit(EXIT_SUCCESS);
}
-- true.c --

-- false.c --
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
return exit(EXIT_FAILURE);
}
-- false.c --

Will this work?

Cheers,
Alex

-- 
"Bullshit. It's a cesspool, and has been for a long time. RMS chucked
another turd in our midst and his sheep drop their daks and follow suit."
- Richard Gooch.

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