[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua.c and OS error codes
- From: Lavergne Thomas <thomas.lavergne@...>
- Date: Fri, 15 Jun 2007 04:35:09 +0200
>From my ANSI/C book it seems that return code is an int, and the
interpretation of his value is implementation defined with just two
values predefined EXIT_SUCCES and EXIT_FAILURE.
So ANSI/C also support at least 16bit exit code (least precision
allowed for int) but this can be more limited due to the implementation
On Thu, Jun 14, 2007 at 11:17:44AM -0700, Mark Edgar wrote:
> Windows apparently supports exit codes from 0 to 4294967295 and POSIX
> supports exit codes from 0 to 255, but C only supports two exit codes:
> EXIT_SUCCESS==0 and EXIT_FAILURE, which is a non-zero but otherwise
> unspecified value.
Thomas Lavergne "Le vrai rêveur est celui qui rêve
de l'impossible." (Elsa Triolet)