◐ Shell
clean mode source ↗

exit - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<stdlib.h>

void exit( int exit_code );

Provoca terminazione normale programma a verificarsi.

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.

Diverse fasi di pulizia vengono eseguite:

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.

  • funzioni passato a atexit sono chiamati.

    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.

  • tutti i flussi di C sono lavata e chiuse

    Original:

    all C streams are flushed and closed

    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

  • i file creati da tmpfile vengono rimossi

    Original:

    files created by tmpfile are removed

    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

  • il controllo viene restituito l'ambiente host. Se exit_code è EXIT_SUCCESS, l'attuazione di un determinato status, che indica terminato con successo viene restituito. Se exit_code è EXIT_FAILURE, l'attuazione di un determinato status, che indica terminazione successo viene restituito. In altri casi l'attuazione definito valore di stato viene restituito.

    Original:

    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.

    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

Parametri

exit_code -

uscita di stato del programma

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.

Valore di ritorno

(Nessuno)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Esempio

Vedi anche

causa chiusura anomala del programma (senza pulizia)

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.


(funzione) [modifica]

registra una funzione di essere chiamato invocazione

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.


(funzione) [modifica]

causa terminazione normale programma senza completamente pulizia

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.


(funzione) [modifica]