Name
EXIT_FAILURE macro — Exit status for unsuccessful termination
Synopsis
int EXIT_FAILURE
Pass EXIT_FAILURE
to
exit
to terminate the program
normally and informs the operating system that the program was
unsuccessful. Returning EXIT_FAILURE
from main
is the same as calling exit
. The EXIT_FAILURE
macro expands to an integer
constant.
See Also
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.