• <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++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              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)  編輯 收藏 引用

            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            狠狠88综合久久久久综合网| 亚洲AV无码久久寂寞少妇| 久久国产高潮流白浆免费观看| 久久婷婷五月综合成人D啪| 久久中文字幕精品| 蜜臀久久99精品久久久久久小说| 99久久精品国产高清一区二区| 一本久久久久久久| 亚洲国产精品成人AV无码久久综合影院 | 999久久久国产精品| 国产三级精品久久| 亚洲香蕉网久久综合影视| AAA级久久久精品无码片| 久久久久噜噜噜亚洲熟女综合| 大香伊人久久精品一区二区| av无码久久久久久不卡网站| 久久噜噜久久久精品66| 久久99热只有频精品8| 亚洲国产精品无码久久青草| 好久久免费视频高清| 综合久久一区二区三区 | 亚洲人成精品久久久久| 91亚洲国产成人久久精品| 久久久国产打桩机| 精品乱码久久久久久夜夜嗨| 国产精品一区二区久久国产| 中文成人无码精品久久久不卡 | 无码人妻久久久一区二区三区 | 久久综合狠狠综合久久综合88| 精品久久久久久国产牛牛app | 久久成人永久免费播放| 国产成人精品久久免费动漫| 久久大香萑太香蕉av| 久久99精品免费一区二区| 国产精品毛片久久久久久久| 色88久久久久高潮综合影院| 久久久久久精品无码人妻| 伊人久久大香线蕉综合热线| 久久综合色之久久综合| 久久久久亚洲AV无码去区首| 久久国产精品视频|