exit
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido no cabeçalho <stdlib.h>
|
||
void exit( int exit_code ); |
||
Causas término do programa normal ocorrer.
Original:
Causes normal program termination to occur.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Várias etapas de limpeza são realizadas:
Original:
Several cleanup steps are performed:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- funções passado para atexit são chamados.Original:functions passed to atexit are called.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - todos os fluxos de C são liberadas e fechadaOriginal:all C streams are flushed and closedThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ficheiros criados por tmpfile são removidosOriginal:files created by tmpfile are removedThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - o controlo retorna para o ambiente do hospedeiro. Se
exit_code
é EXIT_SUCCESS, uma aplicação definida de status, indicando termo bem sucedido é devolvido. Seexit_code
é EXIT_FAILURE, uma aplicação definida de status, indicando rescisão sucesso é retornado. Em outros casos, definida pela implementação valor de status é retornado.Original:control is returned to the host environment. Ifexit_code
is EXIT_SUCCESS, an implementation-defined status, indicating successful termination is returned. Ifexit_code
is EXIT_FAILURE, an implementation-defined status, indicating unsuccessful termination is returned. In other cases implementation-defined status value is returned.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Índice |
[editar] Parâmetros
exit_code | - | estado de saída do programa
Original: exit status of the program The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
(Nenhum)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
provoca finalização anormal do programa (sem limpeza) Original: causes abnormal program termination (without cleaning up) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) | |
registra uma função a ser chamada no momento da invocação exit() Original: registers a function to be called on exit() invocation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) | |
(C99) |
provoca término normal do programa completamente sem limpeza Original: causes normal program termination without completely cleaning up The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) |
C++ documentation for exit
|