• <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 閱讀(465) 評論(0)  編輯 收藏 引用
            久久国产免费观看精品3| 久久久久久国产精品无码下载| 一个色综合久久| 久久久久亚洲AV无码专区首JN| 精品综合久久久久久97| 久久亚洲精品成人av无码网站 | 97精品伊人久久久大香线蕉| 99久久婷婷国产一区二区| 日本高清无卡码一区二区久久| 国内精品久久久久影院日本| 久久九九全国免费| 日韩欧美亚洲综合久久| 国产成人精品久久一区二区三区| 午夜精品久久久久9999高清| 久久99精品国产自在现线小黄鸭| 精品久久久无码中文字幕| 色欲综合久久中文字幕网| 色成年激情久久综合| 久久婷婷五月综合色高清 | 色8激情欧美成人久久综合电| 香蕉久久永久视频| 国产999精品久久久久久| 国内高清久久久久久| 欧美粉嫩小泬久久久久久久 | 色偷偷久久一区二区三区| 亚洲欧美成人久久综合中文网| 久久青草国产手机看片福利盒子| 亚洲中文精品久久久久久不卡| 久久人人超碰精品CAOPOREN| 日本三级久久网| 久久99精品国产99久久| 91精品国产色综合久久| 久久久久亚洲AV成人片| 欧洲精品久久久av无码电影 | 欧美亚洲另类久久综合婷婷| 久久夜色精品国产亚洲| 麻豆精品久久精品色综合| 91久久精品国产成人久久| 日本久久久久久中文字幕| 99热都是精品久久久久久| 国产L精品国产亚洲区久久|