Being picky... it's not "somethingotherthanzero" according to the standard. Your statement assumes that a return of 9999 might be valid, which in a lot of cases it won't be.
Originally posted by blackrat364
you return 0; for sucess, or return (somethingotherthanzero) for failure. Just...convention.
control is returned to the host environment. If status is zero or EXIT_SUCCESS, an
implementation defined form of the status successful termination is returned.
If status is EXIT_FAILURE, an implementation defined form of
the status unsuccessful termination is returned.
Otherwise the status returned is implementation defined.