exit [C++ Reference]
Keywords: c,other,exit
Date: 2008-10-14T15:42:02-0700

[[exit]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## exit

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.

Related Topics: abort, atexit, system

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •