• <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)  編輯 收藏 引用
            观看 国产综合久久久久鬼色 欧美 亚洲 一区二区 | 久久亚洲精品无码观看不卡| 韩国无遮挡三级久久| 91久久精品国产免费直播| 国产精品久久成人影院| 久久综合九色综合欧美狠狠| 欧美久久久久久精选9999| 色99久久久久高潮综合影院| 色欲久久久天天天综合网精品| 97久久久久人妻精品专区| 久久有码中文字幕| 久久超碰97人人做人人爱| 天天综合久久一二三区| 国产精品久久网| 无码人妻精品一区二区三区久久久| 粉嫩小泬无遮挡久久久久久| 久久男人中文字幕资源站| 亚洲国产欧美国产综合久久| 国产成人综合久久精品尤物| 狠狠色婷婷久久一区二区| 国产成人久久777777| 久久亚洲中文字幕精品有坂深雪| 精品久久久久久国产免费了| 99久久精品影院老鸭窝| 无遮挡粉嫩小泬久久久久久久 | 久久久久综合国产欧美一区二区| 亚洲精品无码久久久影院相关影片| 狠狠色伊人久久精品综合网| 韩国三级大全久久网站| 亚洲人成伊人成综合网久久久| 无码乱码观看精品久久| 久久综合久久伊人| 青青草国产精品久久| 久久se精品一区精品二区| 99久久成人国产精品免费| 久久久久人妻一区精品性色av| 久久人做人爽一区二区三区| 久久午夜无码鲁丝片秋霞| 欧美精品丝袜久久久中文字幕| 尹人香蕉久久99天天拍| 久久精品国产亚洲AV蜜臀色欲|