• <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)  編輯 收藏 引用
            国内精品综合久久久40p| 精品久久无码中文字幕| 久久国产精品一区| 久久综合成人网| 四虎国产精品成人免费久久| 日韩av无码久久精品免费| 国产91色综合久久免费分享| 欧美午夜A∨大片久久 | 人人狠狠综合久久88成人| 东京热TOKYO综合久久精品| 欧美性大战久久久久久| 久久免费的精品国产V∧| 武侠古典久久婷婷狼人伊人| 久久综合香蕉国产蜜臀AV| 久久精品国产精品亜洲毛片| 国产V亚洲V天堂无码久久久| 久久五月精品中文字幕| 香蕉久久夜色精品国产小说| 久久人人添人人爽添人人片牛牛 | 精品久久综合1区2区3区激情| 久久乐国产综合亚洲精品| 一级做a爰片久久毛片人呢| 97精品国产97久久久久久免费| 国内精品久久久久影院网站| 久久久久久国产精品免费无码| 欧美伊人久久大香线蕉综合| 精品久久久久久国产牛牛app| 国产Av激情久久无码天堂 | 国产精品久久久久久久| 一本色道久久88精品综合| 精品久久久一二三区| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 欧美激情精品久久久久久久| 日本久久久精品中文字幕| 久久久久无码精品国产| 国产精品美女久久久m| 久久不见久久见免费视频7| 久久成人国产精品| 伊人色综合久久| 国产精品gz久久久| 日本久久中文字幕|