• <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 閱讀(473) 評論(0)  編輯 收藏 引用
            国产69精品久久久久久人妻精品| 久久99精品久久久久久久久久| yellow中文字幕久久网| 国产—久久香蕉国产线看观看| 久久亚洲国产最新网站| 精品久久久无码人妻中文字幕豆芽 | 欧美牲交A欧牲交aⅴ久久| 国产精品毛片久久久久久久 | 亚洲成色999久久网站| 久久久久久久免费视频| 青青青国产成人久久111网站| 亚洲午夜无码久久久久小说| 国产亚洲欧美成人久久片| 一本综合久久国产二区| 久久国产精品99精品国产987| 久久久久亚洲AV无码专区首JN| 国产亚州精品女人久久久久久 | 99久久国产精品免费一区二区| 丰满少妇人妻久久久久久4| 亚洲AV乱码久久精品蜜桃| 欧美日韩成人精品久久久免费看| 久久精品国产亚洲麻豆| 久久夜色精品国产网站| 亚洲国产成人久久综合区| 国产999精品久久久久久| 97久久超碰国产精品2021| 97精品依人久久久大香线蕉97 | 亚洲国产精品无码久久一线| 亚洲欧美成人久久综合中文网 | 国产福利电影一区二区三区久久久久成人精品综合 | 伊人久久大香线蕉综合影院首页 | 国产午夜精品久久久久九九电影| 久久精品一区二区国产| 久久se精品一区精品二区| 国产欧美久久久精品| 久久国产亚洲精品麻豆| 久久久久久狠狠丁香| 国产精品99久久不卡| 久久综合日本熟妇| 人人妻久久人人澡人人爽人人精品 | 91亚洲国产成人久久精品网址|