• <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)  編輯 收藏 引用
            精品久久久中文字幕人妻| 欧美精品丝袜久久久中文字幕 | 久久99精品久久久久久hb无码 | 色8激情欧美成人久久综合电| 久久福利资源国产精品999| 亚洲中文字幕久久精品无码APP| 久久人人妻人人爽人人爽| 成人精品一区二区久久| 狠狠综合久久综合88亚洲| 久久综合欧美成人| 久久AV无码精品人妻糸列| 国产精品九九九久久九九| 亚洲综合久久夜AV | 久久精品国产99国产精偷| 国产香蕉久久精品综合网| 很黄很污的网站久久mimi色| 亚洲αv久久久噜噜噜噜噜| 久久伊人影视| 国产精品成人99久久久久| 国产精品久久久久AV福利动漫| 中文字幕久久亚洲一区| 久久一区二区免费播放| 国产精品狼人久久久久影院| 日韩AV无码久久一区二区| 久久婷婷五月综合国产尤物app| 久久国产精品免费| 日本精品久久久中文字幕| 国产精品美女久久久久网| 久久精品国产亚洲av水果派| 狠狠色噜噜色狠狠狠综合久久| 无码8090精品久久一区| 99久久精品这里只有精品| 精品精品国产自在久久高清| 91精品国产高清久久久久久io| 久久精品人成免费| 久久久久久久亚洲Av无码| 色综合久久久久久久久五月| 亚洲美日韩Av中文字幕无码久久久妻妇 | 亚洲熟妇无码另类久久久| 伊人久久精品无码二区麻豆| 久久久精品人妻一区二区三区蜜桃 |