• <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)  編輯 收藏 引用
            久久亚洲综合色一区二区三区| 久久久久国产精品嫩草影院| 久久亚洲精品国产精品| 亚洲精品高清国产一线久久| 国产产无码乱码精品久久鸭| 久久精品无码一区二区app| 亚洲国产日韩综合久久精品| 亚洲精品无码久久久久| 国产精品福利一区二区久久| 久久久久人妻一区精品| 久久人人妻人人爽人人爽| 久久亚洲国产成人影院网站| 午夜久久久久久禁播电影| 日韩久久久久中文字幕人妻| 国产成人精品免费久久久久| 区亚洲欧美一级久久精品亚洲精品成人网久久久久| 波多野结衣久久精品| 国产午夜福利精品久久| 久久人人爽人人爽人人片AV不| 国产一区二区精品久久凹凸| 69SEX久久精品国产麻豆| 久久这里只有精品首页| 久久精品无码一区二区日韩AV | 久久精品一区二区三区中文字幕| 久久久老熟女一区二区三区| 久久亚洲精品无码VA大香大香| 国产精品激情综合久久| 国产亚洲综合久久系列| 久久久婷婷五月亚洲97号色| 99久久精品国产一区二区| 一级做a爰片久久毛片毛片| 久久丝袜精品中文字幕| 狠狠精品久久久无码中文字幕| 久久午夜电影网| 国产成人久久精品二区三区| 99久久婷婷国产综合精品草原| 国内精品久久人妻互换| 久久91精品国产91久久户| 91精品国产91久久综合| 99久久99久久精品国产片| 丁香久久婷婷国产午夜视频|