Name
EXIT_SUCCESS macro — Exit status for successful termination
Synopsis
int EXIT_SUCCESS
Pass EXIT_SUCCESS
to
exit
to terminate the program
normally and inform the operating system that the program was
successful. Returning EXIT_SUCCESS
from main
is the same as calling exit
.
The value 0
also means
success, but EXIT_SUCCESS
is not
necessarily equal to 0. The EXIT_SUCCESS
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.