• <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久久福利国产成人精品| 狠狠色伊人久久精品综合网| 久久人人爽人人爽AV片| 99久久免费国产精品特黄| 国产成人精品白浆久久69| 久久AⅤ人妻少妇嫩草影院| 日本五月天婷久久网站| 国产精品久久久久影视不卡| 久久综合伊人77777麻豆| 久久综合给合久久国产免费| 精品多毛少妇人妻AV免费久久 | 久久狠狠一本精品综合网| 精品久久久久中文字| 久久久午夜精品| 日本精品久久久久中文字幕| 国产69精品久久久久APP下载| 日韩一区二区久久久久久| 亚洲精品无码久久久久| 国产日韩欧美久久| 999久久久无码国产精品| 久久久久久精品免费看SSS| 久久激情五月丁香伊人| 久久99精品国产一区二区三区| 久久久久久久久久久精品尤物| 久久久精品国产亚洲成人满18免费网站| 国内精品九九久久久精品| 亚洲精品美女久久777777| 伊人久久大香线蕉无码麻豆 | 亚洲国产成人久久精品影视| 亚洲精品无码久久一线| 久久精品国产亚洲精品2020| 久久人人超碰精品CAOPOREN| 国产成人无码精品久久久免费| 久久精品国产一区二区三区日韩| 日产精品久久久一区二区| 无码久久精品国产亚洲Av影片| 综合人妻久久一区二区精品|