• <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 閱讀(472) 評論(0)  編輯 收藏 引用
            国产精品一区二区久久精品无码 | 欧美久久一区二区三区| 亚洲午夜久久久影院伊人| 久久久久国色AV免费观看| 爱做久久久久久| 天天久久狠狠色综合| 久久线看观看精品香蕉国产| 97久久超碰成人精品网站| 亚洲精品国产美女久久久| 中文精品99久久国产| 无码国内精品久久人妻麻豆按摩| 伊人色综合久久天天人手人婷| 91久久婷婷国产综合精品青草| 色综合久久中文字幕无码| 亚洲国产精品无码久久一线| 久久久久99精品成人片试看| av国内精品久久久久影院| 99精品久久久久久久婷婷| 久久精品国产亚洲精品| 日韩精品久久久久久久电影| 精品久久人人爽天天玩人人妻| 亚洲国产另类久久久精品黑人| 99久久免费国产精品热| 国产成人AV综合久久| 波多野结衣久久| 99久久精品日本一区二区免费| 久久精品成人免费国产片小草| 中文字幕久久久久人妻| 色综合久久中文色婷婷| 色天使久久综合网天天| 亚洲午夜久久影院| 国产精品99久久久精品无码 | 久久久精品日本一区二区三区 | 久久久精品人妻一区二区三区四| 中文字幕久久欲求不满| 久久精品人人做人人爽电影| 久久久精品免费国产四虎| 国内精品伊人久久久久妇| 国产精品美女久久久久网| 香蕉aa三级久久毛片| 久久午夜电影网|