• <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++博客 :: 首頁(yè) :: 新隨筆 :: 聯(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 閱讀(464) 評(píng)論(0)  編輯 收藏 引用
            国内精品综合久久久40p| 精品久久久久久无码中文野结衣 | 久久婷婷五月综合97色直播| 青青草原综合久久大伊人| 久久天天躁狠狠躁夜夜网站| 99久久精品国产一区二区| 久久久久久精品久久久久| 久久青青草原精品影院| 亚洲国产另类久久久精品| 999久久久免费国产精品播放| 久久久无码精品亚洲日韩蜜臀浪潮| 国内精品人妻无码久久久影院导航| 久久99精品久久久久子伦| 日产精品久久久久久久| 国产精品成人99久久久久91gav | 亚洲AV日韩AV永久无码久久| 91亚洲国产成人久久精品| 亚洲中文字幕无码久久综合网| 国内精品久久久久久中文字幕| 亚洲精品乱码久久久久久蜜桃图片| 精品久久久久久无码人妻热| 久久av无码专区亚洲av桃花岛| 久久无码国产| 精品久久久久一区二区三区| 国产日产久久高清欧美一区| 精品少妇人妻av无码久久| 久久婷婷色综合一区二区| 国内精品伊人久久久久网站| 久久电影网一区| 久久99精品久久久久子伦| 精品国产青草久久久久福利| 无码任你躁久久久久久老妇App| 久久久久久极精品久久久| 久久播电影网| 久久久WWW成人免费精品| 亚洲乱亚洲乱淫久久| 国产精品99久久久久久猫咪| 很黄很污的网站久久mimi色 | 国产精品美女久久久m| 久久亚洲精品成人AV| 国产精品一久久香蕉国产线看|