• <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 閱讀(473) 評論(0)  編輯 收藏 引用
            久久久久久久97| 亚洲国产综合久久天堂 | 人人狠狠综合久久亚洲婷婷| 久久久精品免费国产四虎| 久久久久人妻一区精品 | 亚洲va久久久噜噜噜久久| 久久久久人妻一区精品色| 久久99精品久久久久久水蜜桃| 久久亚洲精品无码aⅴ大香| AV狠狠色丁香婷婷综合久久| 久久精品无码一区二区app| 久久综合亚洲色HEZYO社区| 久久97精品久久久久久久不卡 | 国产精品美女久久久久| 久久夜色精品国产www| 亚洲国产精品无码成人片久久| 亚洲欧美日韩精品久久| 亚洲AV日韩精品久久久久久 | 一本色道久久HEZYO无码| 丰满少妇人妻久久久久久4| 亚洲国产精品无码久久98| 久久国产成人午夜AV影院| 97久久精品无码一区二区天美| 亚洲人成无码久久电影网站| 久久综合九色综合97_久久久| 色8久久人人97超碰香蕉987| 久久久久99精品成人片三人毛片 | 久久久久综合国产欧美一区二区| 久久久久99精品成人片欧美| 一本久久a久久精品亚洲| 久久天天婷婷五月俺也去| 久久久99精品成人片中文字幕| 狠狠色丁香婷婷久久综合不卡| 天堂久久天堂AV色综合| 中文无码久久精品| 亚洲乱码精品久久久久..| 老男人久久青草av高清| 久久久精品人妻一区二区三区蜜桃| 欧美日韩中文字幕久久久不卡| 人人狠狠综合88综合久久| 一本色道久久88综合日韩精品 |