• <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)  編輯 收藏 引用
            久久被窝电影亚洲爽爽爽| 精品久久久久久无码不卡| 91精品国产色综久久| 人妻丰满?V无码久久不卡| 亚洲综合久久久| 国产V亚洲V天堂无码久久久| 久久精品国产亚洲麻豆| 伊人色综合久久天天人守人婷 | 久久99热这里只有精品国产| 亚洲国产成人精品女人久久久 | 狠狠色丁香婷婷久久综合不卡| 国产成人精品综合久久久| 怡红院日本一道日本久久| 蜜桃麻豆WWW久久囤产精品| 国产成人久久精品区一区二区| 久久亚洲欧洲国产综合| 久久这里只有精品首页| 中文字幕无码免费久久| 久久久精品波多野结衣| 好久久免费视频高清| 无码精品久久久天天影视| 久久久久国色AV免费看图片| 欧美亚洲另类久久综合| 色婷婷综合久久久中文字幕| 亚洲伊人久久成综合人影院 | 久久精品国产日本波多野结衣| 国产精品久久久久久久久免费| 免费精品久久天干天干| 久久99热这里只有精品国产| 久久天堂电影网| 久久国产乱子伦精品免费强| 久久w5ww成w人免费| 久久人与动人物a级毛片| 一本久久免费视频| 久久久WWW成人免费精品| 久久综合九色综合欧美就去吻| 激情五月综合综合久久69| 国内精品久久久久久麻豆| 久久不见久久见免费影院www日本| 久久久久一区二区三区| 国产999精品久久久久久|