Should probably be EXIT_FAILURE rather than 0 since this is failure mode (I believe that 0 == EXIT_SUCCESS)