◐ Shell
clean mode source ↗

exit — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Déclaré dans l'en-tête

<stdlib.h>

void exit( int exit_code );

Provoque l'arrêt du programme normal de se produire .

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.

Plusieurs étapes de nettoyage sont effectuées:

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.

  • responsabilités ont été transférées à atexit sont appelés .

    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.

  • tous les flux de C sont vidés et fermés

    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.

  • fichiers créés par tmpfile sont supprimés

    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.

  • le contrôle est renvoyé à l'environnement hôte. Si exit_code est EXIT_SUCCESS, une mise en œuvre définies par le statut, indiquant la fin réussie est retourné. Si exit_code est EXIT_FAILURE, une mise en œuvre définies par le statut, en indiquant la résiliation échec est retourné. Dans d'autres cas définis par l'implémentation valeur d'état est retourné .

    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.

Paramètres

exit_code -

quitter l'état du programme

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.

Retourne la valeur

(Aucun)

Original:

(none)

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

Exemple

Voir aussi

provoque la terminaison anormale du programme (sans nettoyage)

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.


(fonction) [edit]

enregistre une fonction qui sera appelée lors de son invocation

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.


(fonction) [edit]

provoque l'arrêt du programme normal sans complètement nettoyage

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.


(fonction) [edit]