• <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++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              6 隨筆 :: 14 文章 :: 0 評(píng)論 :: 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 閱讀(464) 評(píng)論(0)  編輯 收藏 引用
            色综合久久综精品| 欧美日韩精品久久免费| 久久久久亚洲av无码专区喷水| 亚洲精品乱码久久久久久蜜桃不卡| 久久久久亚洲av无码专区导航| 久久福利青草精品资源站| 国产成人久久精品麻豆一区| 中文精品99久久国产 | 伊人久久久AV老熟妇色| 久久精品国产亚洲沈樵| 国产99久久久国产精品小说| 日本精品久久久久中文字幕| 区久久AAA片69亚洲| 99国内精品久久久久久久| 99久久精品免费看国产一区二区三区 | 天堂久久天堂AV色综合| 久久精品国产99久久丝袜| 无遮挡粉嫩小泬久久久久久久| 精品视频久久久久| MM131亚洲国产美女久久| 一本色综合网久久| 久久久久综合中文字幕 | 久久人妻少妇嫩草AV无码专区| 色偷偷91久久综合噜噜噜噜| 国产激情久久久久影院老熟女免费| 99精品久久精品一区二区| 色婷婷综合久久久久中文字幕| 久久亚洲欧美日本精品| 久久精品国产一区| 久久不见久久见免费视频7| 一本色道久久综合亚洲精品| 久久只有这精品99| 伊人久久大香线蕉成人| 亚洲国产成人久久综合区| 亚洲а∨天堂久久精品| 久久久久无码精品国产app| 国内精品久久久久久中文字幕| 久久99精品国产麻豆不卡| 国产精品99久久不卡| 欧美一级久久久久久久大片| 久久天天婷婷五月俺也去|