Translations of this page?:

atexit

语法:

    #include <cstdlib>
    int atexit( void (*func)(void) );

函数 atexit() 导致程序终止时调用由func指向的函数。你可以多次调用atexit()(至少32次,依赖于你的编译器),而这些函数以与它们建立相反的次序调用。atexit()成功时返回零,失败时返回非零。

相关主题: abort, exit

 
• • • SitemapRecent changesRSScc