C++ Programming/Code/Standard C Library/Functions/exit
< C++ Programming < Code < Standard C Library < Functionsexit
Syntax |
#include <cstdlib>
void exit( int exit_code );
|
The exit() function stops the program. exit_code is passed on to be the return value of the program, where usually zero indicates success and non-zero indicates an error.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.