• <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)  編輯 收藏 引用
            热久久国产欧美一区二区精品| 狠狠色婷婷久久一区二区三区| 国产福利电影一区二区三区久久老子无码午夜伦不 | 久久精品国产2020| 99久久婷婷国产综合亚洲| 国产香蕉97碰碰久久人人| 久久久久亚洲av综合波多野结衣 | 久久精品国产精品国产精品污| 久久久久亚洲?V成人无码| 色诱久久久久综合网ywww| 久久人人爽人人爽人人片AV东京热 | 国产美女久久久| 免费精品国产日韩热久久| 97久久精品午夜一区二区| 伊人色综合久久天天人守人婷| 国产99精品久久| 中文字幕无码免费久久| 日本精品久久久久久久久免费| 国产亚洲色婷婷久久99精品| 久久久久亚洲AV成人网人人网站| 99久久精品免费看国产免费| 久久夜色精品国产噜噜噜亚洲AV| 久久免费大片| 精品人妻伦九区久久AAA片69| 久久人妻少妇嫩草AV无码专区| 人妻无码精品久久亚瑟影视| 日韩电影久久久被窝网| 久久99精品久久久久久齐齐 | 漂亮人妻被黑人久久精品| 久久久久国产精品人妻| 久久久久久久波多野结衣高潮| 久久91精品国产91久| 欧美一级久久久久久久大片| 久久久久人妻一区精品果冻| 久久精品国产第一区二区| 久久精品国产99久久丝袜| 久久影视国产亚洲| 国产69精品久久久久APP下载| 久久精品中文字幕大胸| 国产成人无码精品久久久性色| 伊人久久大香线蕉综合影院首页|