• <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)  編輯 收藏 引用
            伊人久久大香线蕉精品| 久久久国产精品网站| 要久久爱在线免费观看| 一本色道久久88综合日韩精品| 欧美精品福利视频一区二区三区久久久精品 | 久久精品国产半推半就| 狠狠色丁香婷婷综合久久来| 国产精品九九久久免费视频| 国内精品久久久久影院亚洲| 精品综合久久久久久888蜜芽| 久久青青草原精品影院| 日韩久久久久中文字幕人妻| 久久久久亚洲AV无码网站| 大香网伊人久久综合网2020| 亚洲va久久久噜噜噜久久男同 | 色综合久久久久综合体桃花网 | 一级做a爰片久久毛片免费陪| 无码人妻精品一区二区三区久久久 | 久久久久亚洲AV成人网人人网站| 久久精品国产亚洲AV电影 | 久久66热人妻偷产精品9| 久久婷婷色综合一区二区| 久久久久AV综合网成人| 国产精自产拍久久久久久蜜| 色综合久久中文字幕无码| 久久久精品久久久久影院| 老司机国内精品久久久久| 乱亲女H秽乱长久久久| 久久五月精品中文字幕| 99久久精品国产综合一区 | 国产精品嫩草影院久久| 国产精品久久久久久久久鸭| 老色鬼久久亚洲AV综合| 国产精品久久久久久久人人看| 久久久久这里只有精品| 一本伊大人香蕉久久网手机| 国产精品欧美久久久天天影视 | 99精品国产免费久久久久久下载| 国内精品久久久久久久亚洲| 久久国产精品-久久精品| 99久久中文字幕|