using EXIT_SUCCESS and EXIT_FAILURE constants from stdlib.h