The atexit Function

The status returned by the atexit function if the value of the argument is other than zero, EXIT_SUCCESS, or EXIT_FAILURE (§4.10.4.3)

The atexit function returns zero if successful, or a nonzero value if unsuccessful.