• <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)  編輯 收藏 引用
            亚洲精品乱码久久久久久蜜桃| 无码任你躁久久久久久| 久久精品国产91久久综合麻豆自制 | 狠狠精品干练久久久无码中文字幕| 久久强奷乱码老熟女网站| 久久天天躁狠狠躁夜夜不卡| 色天使久久综合网天天| 久久亚洲AV成人无码电影| 久久夜色精品国产网站| 精品久久久久久无码中文野结衣| 精品乱码久久久久久夜夜嗨| 少妇人妻综合久久中文字幕| 99国产欧美精品久久久蜜芽| 成人午夜精品久久久久久久小说| 久久综合久久综合亚洲| 亚洲va久久久噜噜噜久久 | 亚洲成人精品久久| 久久久久亚洲精品男人的天堂| 精品久久人人爽天天玩人人妻| 亚洲精品tv久久久久久久久| 国产婷婷成人久久Av免费高清 | 中文精品99久久国产| 少妇久久久久久被弄高潮| 亚洲国产高清精品线久久| 一本久久久久久久| 久久久中文字幕| 久久99精品国产一区二区三区| 国内精品九九久久精品| 久久99精品国产99久久6| 精品久久久久久综合日本| 久久久久无码精品国产| 久久久亚洲欧洲日产国码二区| 久久这里有精品视频| 精品国产VA久久久久久久冰| 五月丁香综合激情六月久久 | 99久久国产主播综合精品| 国产人久久人人人人爽| 国产成年无码久久久久毛片| 久久66热人妻偷产精品9| 91精品国产9l久久久久| 国产精品无码久久综合网|