• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            foobar

              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
              6 隨筆 :: 14 文章 :: 0 評論 :: 0 Trackbacks
            int atexit ( void ( * function ) (void) );               <cstdlib>

             The function pointed by the function pointer argument is called when the program terminates normally.

            If more than one atexit function has been specified by different calls to this function, they are all executed in reverse order as a stack, i.e. the last function specified is the first to be executed at exit.

            One single function can be registered to be executed at exit more than once.

            C++ implementations are required to support the registration of at least 32 atexit functions.

            Parameters

            function
            Function to be called. The function has to return no value and accept no arguments.

            Return Value

            A zero value is returned if the function was successfully registered, or a non-zero value if it failed.

            Example

            /* atexit example */
                        #include <stdio.h>
                        #include <stdlib.h>
                        void fnExit1 (void)
                        {
                        puts ("Exit function 1.");
                        }
                        void fnExit2 (void)
                        {
                        puts ("Exit function 2.");
                        }
                        int main ()
                        {
                        atexit (fnExit1);
                        atexit (fnExit2);
                        puts ("Main function.");
                        return 0;
                        }
                        

            Output:
            
                        Main function.
            Exit function 2.
            Exit function 1.

            posted on 2007-11-15 23:47 foobar 閱讀(464) 評論(0)  編輯 收藏 引用
            久久久久亚洲AV无码专区体验| 久久亚洲国产成人影院| 91麻豆国产精品91久久久| 99久久亚洲综合精品成人| 99久久精品日本一区二区免费| 久久免费视频1| 亚洲国产精品狼友中文久久久| 国内精品久久久久久不卡影院| 亚洲天堂久久精品| 狠狠色综合网站久久久久久久 | 国内精品久久久久久麻豆| 久久精品男人影院| 色成年激情久久综合| 久久香蕉国产线看观看99| 亚洲成人精品久久| 久久精品国产WWW456C0M| 亚洲精品97久久中文字幕无码| 亚洲国产成人乱码精品女人久久久不卡 | 亚洲色欲久久久综合网东京热| 综合久久国产九一剧情麻豆| 成人久久免费网站| 国产成人久久AV免费| 99久久99久久精品国产片果冻| 精品久久人人妻人人做精品| 伊人伊成久久人综合网777| 人妻无码αv中文字幕久久琪琪布| 一本久久知道综合久久| 久久亚洲欧美日本精品| 伊人久久精品影院| 久久精品国产精品国产精品污| 狠狠色丁香婷婷综合久久来来去| 色狠狠久久综合网| 久久99国产精品99久久| 久久精品无码一区二区日韩AV | 久久久久女人精品毛片| 爱做久久久久久| 亚洲中文字幕久久精品无码喷水| 天天综合久久久网| 久久精品中文无码资源站| 久久免费视频网站| 亚洲AV成人无码久久精品老人|