• <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)  編輯 收藏 引用
            国产午夜免费高清久久影院| 久久久婷婷五月亚洲97号色| 99久久国产主播综合精品| 国产精品内射久久久久欢欢| 欧美激情精品久久久久久久| 蜜桃麻豆WWW久久囤产精品| 久久丫精品国产亚洲av| 99久久无码一区人妻a黑| 国产成人无码精品久久久免费| 伊人久久大香线蕉无码麻豆| 无码人妻精品一区二区三区久久久| 99久久这里只有精品| 人妻系列无码专区久久五月天| 午夜人妻久久久久久久久| 国产成人久久精品麻豆一区| 亚洲欧美日韩中文久久| 久久久久久av无码免费看大片| 久久久久久夜精品精品免费啦| 久久久WWW成人免费毛片| 久久久久亚洲AV无码麻豆| 国产精品成人久久久| 久久99精品久久久久久噜噜| 2021久久精品国产99国产精品| 热99RE久久精品这里都是精品免费 | 久久香蕉综合色一综合色88| 精品国产乱码久久久久久人妻| 九九热久久免费视频| 色综合久久久久| 亚洲国产成人久久精品动漫| 99久久人妻无码精品系列| 少妇人妻88久久中文字幕| 国产精品久久久久久久久软件| 久久久WWW成人| 精品国产综合区久久久久久| 伊人久久大香线蕉精品| 久久成人精品视频| 亚洲国产精品久久久久久| 99999久久久久久亚洲| av午夜福利一片免费看久久| 久久精品国产亚洲av高清漫画| 97久久综合精品久久久综合|