Mail Archives: djgpp/1998/01/07/19:31:49
Anton Helm wrote:
>
> Exit Code 255 is therefore most likely caused by
> exit(-1)
> which is common usage (not standard!) for nonsuccessful
> termination. If you like to keep to ANSI C standard
> use the macros EXIT_SUCCESS and EXIT_FAILURE as exit codes.
> (see stdlib.h for numerical values).
Actually, an exit code of -1 (255) is almost always caused by an
abnormal termination, such as Ctrl-C/Ctrl-Break or a crash. Most
programs that I have seen either use the EXIT_* macros, or use a
positive code to indicate unsuccessful termination.
--
---------------------------------------------------------------------
| John M. Aldrich | "Sex should be friendly. Otherwise |
| aka Fighteer I | stick to mechanical toys; it's more |
| mailto:fighteer AT cs DOT com | sanitary." |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -