• <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热精品| 日韩人妻无码精品久久久不卡| 99国内精品久久久久久久| 中文字幕日本人妻久久久免费| 91亚洲国产成人久久精品网址| 亚洲va中文字幕无码久久不卡| 久久国产成人亚洲精品影院| 精品久久久久久无码专区不卡| 狠色狠色狠狠色综合久久| 国内精品久久久久伊人av| 女同久久| 国产精品成人久久久久久久| 偷偷做久久久久网站| 久久久久黑人强伦姧人妻| 9久久9久久精品| 国产Av激情久久无码天堂| 久久久久久久97| 精品一二三区久久aaa片| 狠狠久久综合伊人不卡| 欧美伊香蕉久久综合类网站| AV无码久久久久不卡蜜桃| 国产毛片欧美毛片久久久| 综合久久给合久久狠狠狠97色| 国产精品九九久久免费视频 | 精品久久久久久国产免费了| 亚洲国产精品久久久天堂| 国产精品成人久久久| 久久精品国产99国产精品导航| 一级做a爰片久久毛片免费陪| 久久久久婷婷| 88久久精品无码一区二区毛片| 亚洲AV无码久久| 亚洲国产精品一区二区久久hs| 久久婷婷五月综合97色直播|