• <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 評(píng)論 :: 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) 評(píng)論(0)  編輯 收藏 引用

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


            久久精品人人做人人爽电影蜜月 | 无码伊人66久久大杳蕉网站谷歌 | 亚洲综合久久夜AV | 精品久久久久久久中文字幕 | 精品久久人人妻人人做精品| 91久久香蕉国产熟女线看| 久久影院亚洲一区| 亚洲欧美日韩久久精品第一区| 国内精品久久久久影院日本| 99久久精品免费看国产一区二区三区 | 久久青青草原亚洲av无码| 亚洲αv久久久噜噜噜噜噜| 久久99国产精品二区不卡| 日韩亚洲国产综合久久久| 天天爽天天狠久久久综合麻豆| 国产真实乱对白精彩久久| 2021国产精品午夜久久| 久久91精品国产91久久户| 久久精品卫校国产小美女| 精品久久久久久国产牛牛app| 欧美大香线蕉线伊人久久| 亚洲国产视频久久| 久久亚洲国产午夜精品理论片| 国内精品伊人久久久久777| 精品免费久久久久国产一区| 91精品国产91久久久久福利| 久久久久免费精品国产| 久久综合视频网站| 色综合久久久久| 99精品久久精品| 久久中文骚妇内射| 一本一本久久aa综合精品 | 久久噜噜电影你懂的| 一本一道久久综合狠狠老| 久久久久免费精品国产| 久久亚洲日韩看片无码| 国产精品久久久久久久人人看| 久久一区二区免费播放| 国产精品无码久久四虎| 久久99国产精一区二区三区| 国产成人精品白浆久久69|