• <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 閱讀(472) 評論(0)  編輯 收藏 引用
            久久精品无码专区免费青青| 热99re久久国超精品首页| 久久99国产精品久久99果冻传媒| 久久乐国产综合亚洲精品| 午夜肉伦伦影院久久精品免费看国产一区二区三区 | 久久精品无码免费不卡| 久久亚洲美女精品国产精品| 国产成人精品综合久久久| 亚洲va国产va天堂va久久| 亚洲∧v久久久无码精品| 无码人妻精品一区二区三区久久| 久久久久亚洲av成人网人人软件| 亚洲精品乱码久久久久久蜜桃| 久久亚洲天堂| 影音先锋女人AV鲁色资源网久久 | segui久久国产精品| 亚洲国产精品久久久久| 精品久久久无码中文字幕| 久久久WWW成人免费毛片| 亚洲国产精品无码久久青草| 伊人久久大香线蕉综合5g| 久久久久久伊人高潮影院| 久久久久成人精品无码中文字幕| 99精品国产在热久久| 久久久WWW成人免费精品| 久久久SS麻豆欧美国产日韩| 久久不见久久见免费视频7| 伊人久久大香线蕉精品| 亚洲国产精品成人AV无码久久综合影院 | 精品无码久久久久久尤物| 一级做a爰片久久毛片人呢| 午夜视频久久久久一区| 精品熟女少妇av免费久久| 99久久人人爽亚洲精品美女| 日韩欧美亚洲国产精品字幕久久久 | 久久久久亚洲AV片无码下载蜜桃| 亚洲国产成人久久综合碰碰动漫3d| 免费精品久久久久久中文字幕| 久久精品无码专区免费青青| 国产午夜电影久久| 久久精品国产99久久无毒不卡 |