• <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   管理


            欧美一区二区三区久久综合| 久久青青草视频| 无码日韩人妻精品久久蜜桃| 久久久噜噜噜久久中文字幕色伊伊| 青青青国产成人久久111网站| 久久久国产精品福利免费| 国产精品无码久久综合网| 久久综合久久性久99毛片| 成人综合久久精品色婷婷| 国产精品无码久久久久久| 超级碰久久免费公开视频| 婷婷久久精品国产| 蜜臀av性久久久久蜜臀aⅴ| 久久亚洲精品视频| 国内精品久久国产| 9191精品国产免费久久| 国内精品久久久久影院薰衣草 | 99久久婷婷国产综合精品草原| 久久久久久国产精品无码下载 | 国产高清美女一级a毛片久久w| 少妇久久久久久被弄到高潮| 久久精品国产亚洲77777| 午夜精品久久久久久| 国产精品99久久99久久久| 久久久久亚洲国产| 日本免费一区二区久久人人澡 | 无码8090精品久久一区| 日本久久久久久中文字幕| 久久久久久人妻无码| 久久99国产精品久久99小说| 久久久久国色AV免费看图片| 亚洲狠狠综合久久| 99久久久精品| 国产精品久久久亚洲| 久久中文字幕视频、最近更新 | 中文字幕精品久久| 久久高清一级毛片| 狠狠色综合久久久久尤物| 香蕉久久一区二区不卡无毒影院 | 国产午夜精品久久久久九九电影| 久久夜色精品国产噜噜麻豆|