• <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)  編輯 收藏 引用
            粉嫩小泬无遮挡久久久久久 | 久久婷婷五月综合国产尤物app | 99久久中文字幕| 久久香综合精品久久伊人| 99久久国产主播综合精品| 久久最新免费视频| 久久久久亚洲AV无码麻豆| 亚洲&#228;v永久无码精品天堂久久 | 久久久精品人妻无码专区不卡| 久久99国产精品久久99| 久久发布国产伦子伦精品 | 久久精品一区二区影院| 久久久久亚洲av综合波多野结衣 | 久久久久国产精品嫩草影院| 青青青青久久精品国产| 伊人久久大香线蕉av一区| 国产成人精品久久一区二区三区av| 久久国产精品无| 久久男人AV资源网站| 国产精品视频久久| 天天爽天天狠久久久综合麻豆| 久久久久国产一区二区 | 久久精品aⅴ无码中文字字幕不卡| 丰满少妇人妻久久久久久4| 国产精品免费福利久久| 亚洲精品高清国产一线久久| 久久亚洲国产最新网站| 一级女性全黄久久生活片免费| 狠狠久久综合| 精品久久久久久无码人妻热| 久久香蕉一级毛片| 久久亚洲欧美日本精品| 伊人丁香狠狠色综合久久| 日韩欧美亚洲综合久久影院d3| 精品综合久久久久久888蜜芽| 久久天堂AV综合合色蜜桃网| 77777亚洲午夜久久多人| 久久福利资源国产精品999| 一本久久综合亚洲鲁鲁五月天| 久久亚洲精品无码观看不卡| 久久久免费观成人影院|