exit codes (was: Identifier length?)

Henry Spencer henry at utzoo.uucp
Sat Mar 25 08:44:44 AEST 1989


In article <12143 at haddock.ima.isc.com> suitti at haddock.ima.isc.com (Stephen Uitti) writes:
>->...most existing C programs exit with a code of 0, 1, or 2 and that
>->0=success, nonzero=failure is a common convention):
>
>What does "2" commonly mean?  "Other kind of error?" ...

The usual custom is that 0 means success, 1 means failure, 2 means it was
invoked improperly (e.g. unknown option) and hence didn't even try.
-- 
Welcome to Mars!  Your         |     Henry Spencer at U of Toronto Zoology
passport and visa, comrade?    | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.std.c mailing list