std::atexit – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
| definiert in Header <cstdlib> |
||
|
|
||
Registriert die Funktion, auf die func auf normale Beendigung des Programms aufgerufen werden (via exit() oder der Rückkehr aus 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.
Der Aufruf der Funktion von mehreren Threads nicht induziert eine Daten-Rennen. Die Implementierung unterstützt die Anmeldung von mindestens 32 Funktionen .
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.
Parameter
| func | - | Zeiger auf eine Funktion auf normale Beendigung des Programms aufgerufen werden Original: pointer to a function to be called on normal program termination The text has been machine-translated via Google Translate. |
Rückgabewert
0 wenn die Registrierung erfolgreich war, Wert ungleich Null sonst .
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.