Espaces de noms
Variantes
Affichages
Actions

std::atexit

De cppreference.com
< cpp‎ | utility‎ | program
 
 
 
Services d'appui aux programmes
La fin du programme
Original:
Program termination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
abort
exit
quick_exit (C++11)
_Exit (C++11)
Communiquer avec l'environnement
Original:
Communicating with the environment
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Signaux
Original:
Signals
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Types de signaux
Original:
Signal types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
Non-locales sauts
Original:
Non-local jumps
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
setjmp
longjmp
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
jmp_buf
 
Defined in header <cstdlib>
extern "C"   int atexit( void (*func)() );
extern "C++" int atexit( void (*func)() );
Enregistre la fonction pointée par func d'être appelé à la cessation normale du programme (via exit() ou au retour d'main()) .
Original:
Registers the function pointed to by func to be called on normal program termination (via exit() or returning from main()).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Appel de la fonction de plusieurs threads n'induit pas une race de données. La mise en œuvre doit appuyer l'homologation des fonctions 32 au moins .
Original:
Calling the function from several threads does not induce a data race. The implementation shall support the registration of at least 32 functions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier] Paramètres

func -
pointeur vers une fonction qui sera appelée à la fin du programme normal
Original:
pointer to a function to be called on normal program termination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Retourne la valeur

0 si l'inscription réussit, valeur différente de zéro autrement .
Original:
0 if the registration succeeds, nonzero value otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Exceptions

noexcept specification:  
noexcept
   (depuis C++11)

[modifier] Exemple

[modifier] Voir aussi

enregistre une fonction qui sera appelée lors de son invocation quick_exit
Original:
registers a function to be called on quick_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]
C documentation for atexit