• <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++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              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)  編輯 收藏 引用

            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            青青青青久久精品国产 | 伊人久久大香线蕉av一区| 中文字幕无码久久精品青草| 久久99精品久久久久子伦| 四虎国产精品免费久久久| 国产精品久久国产精品99盘| 色偷偷888欧美精品久久久| 久久久噜噜噜久久中文字幕色伊伊 | 99久久综合国产精品二区| 中文字幕日本人妻久久久免费| 久久91亚洲人成电影网站| 99国产欧美精品久久久蜜芽| 欧美午夜A∨大片久久 | 久久精品欧美日韩精品| 国产 亚洲 欧美 另类 久久| 久久久久久无码Av成人影院| 99久久精品国产麻豆| 日本久久久久亚洲中字幕| 99久久久精品免费观看国产| 超级碰碰碰碰97久久久久| 91亚洲国产成人久久精品| 精品久久久无码中文字幕天天| 精品国产乱码久久久久久郑州公司| 久久久久久极精品久久久| 欧美性大战久久久久久| 国产91久久精品一区二区| 成人久久久观看免费毛片| 97久久精品国产精品青草| 国产精品成人久久久久久久| .精品久久久麻豆国产精品| 国产精品久久久久久久久鸭| 亚洲国产视频久久| 久久综合综合久久综合| 亚洲国产精品嫩草影院久久| 99国内精品久久久久久久| 久久天天婷婷五月俺也去| 中文字幕日本人妻久久久免费 | 欧洲性大片xxxxx久久久| 久久精品毛片免费观看| 久久精品综合一区二区三区| 久久国产精品免费|