[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/c/program/exit [Back]  [Original]

exit cppreference.com
cppreference.com

exit

cppreference.com

<metanoindex/>

<tbody> </tbody>
<stdlib.h>
void exit( int exit_code );
.
:
Causes normal program termination to occur.
Google.
. .
:
Several cleanup steps are performed:
Google.
. .
  • atexit .
    :
    functions passed to atexit are called.
    Google.
    . .
  • C
    :
    all C streams are flushed and closed
    Google.
    . .
  • , tmpfile
    :
    files created by tmpfile are removed
    Google.
    . .
  • . exit_code EXIT_SUCCESS, , . exit_code EXIT_FAILURE, , . .
    :
    control is returned to the host environment. If exit_code is EXIT_SUCCESS, an implementation-defined status, indicating successful termination is returned. If exit_code is EXIT_FAILURE, an implementation-defined status, indicating unsuccessful termination is returned. In other cases implementation-defined status value is returned.
    Google.
    . .

exit_code
:
exit status of the program
Google.
. .

()

.

( )
() []
, exit()
() []

() []
C++ exit

Web Proxy Viewer  |  New URL  |  Original Page