• <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 閱讀(473) 評論(0)  編輯 收藏 引用
            欧美午夜A∨大片久久| 老司机国内精品久久久久| 免费精品99久久国产综合精品 | 91精品国产高清91久久久久久| 精品少妇人妻av无码久久| 国产午夜精品久久久久九九| 久久精品人人做人人妻人人玩| 精品久久久久久国产免费了| 日韩欧美亚洲综合久久影院Ds | 久久国产亚洲精品| 热99re久久国超精品首页| 久久综合九色欧美综合狠狠 | 精品人妻伦九区久久AAA片69| 欧美久久亚洲精品| 久久r热这里有精品视频| 午夜精品久久久久久毛片| 狠狠综合久久综合88亚洲| 7777精品伊人久久久大香线蕉| 久久久久18| 人妻精品久久久久中文字幕| 亚洲精品白浆高清久久久久久| 国产精品美女久久久网AV| 久久99国产精品成人欧美| 久久天天躁狠狠躁夜夜avapp| 久久久无码一区二区三区| 亚洲精品无码专区久久同性男| 青青热久久国产久精品 | 国产精品嫩草影院久久| 久久精品黄AA片一区二区三区| 久久夜色精品国产亚洲av| 亚洲天堂久久精品| 久久强奷乱码老熟女网站| 久久99国产精品二区不卡| 亚洲精品无码久久久久| 久久久久久精品免费看SSS| 亚洲色大成网站WWW久久九九| 久久久精品久久久久久 | 一级做a爰片久久毛片看看| 久久久久99精品成人片三人毛片| 久久777国产线看观看精品| 97热久久免费频精品99|