• <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 閱讀(465) 評論(0)  編輯 收藏 引用
            伊人热热久久原色播放www| 久久精品国产欧美日韩| 亚洲午夜久久久久久久久久| 久久青青色综合| 国产一区二区精品久久| 久久99久久成人免费播放| 久久久久se色偷偷亚洲精品av| 精品久久久久久国产潘金莲 | 中文精品久久久久人妻| 性做久久久久久久| 久久久久久久综合日本| 久久精品蜜芽亚洲国产AV| 精品久久久久中文字| MM131亚洲国产美女久久| 无码人妻久久一区二区三区蜜桃| 久久99精品久久久久久hb无码| 久久无码AV中文出轨人妻| 91久久精品91久久性色| 久久人人添人人爽添人人片牛牛| 国产福利电影一区二区三区,免费久久久久久久精| 久久久久久噜噜精品免费直播| 国产精品免费看久久久| 一本久久知道综合久久| 久久只有这精品99| 久久精品国产亚洲精品| 国产精品女同一区二区久久| 精品国际久久久久999波多野| 久久人人爽人人人人爽AV| 久久人人爽人人爽人人片AV东京热| 国产婷婷成人久久Av免费高清 | 午夜欧美精品久久久久久久| 久久人人爽人人澡人人高潮AV| 色综合久久最新中文字幕| 国产精品久久久久9999| 久久久久99精品成人片欧美| 欧美一区二区三区久久综| 漂亮人妻被黑人久久精品| 久久婷婷五月综合97色| 久久精品无码一区二区无码| 久久成人国产精品| 7国产欧美日韩综合天堂中文久久久久|