• <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 閱讀(464) 評論(0)  編輯 收藏 引用
            国产成人香蕉久久久久| 一本色道久久88—综合亚洲精品| 99精品国产在热久久| 热久久这里只有精品| 午夜精品久久久久久影视riav | 久久免费的精品国产V∧| 久久久久亚洲AV无码永不| 91久久精品国产91性色也| 亚洲人成网站999久久久综合| 中文字幕久久久久人妻| 99久久国产综合精品网成人影院 | 国内精品久久国产大陆| 久久久久久国产精品无码下载| 婷婷伊人久久大香线蕉AV | 综合网日日天干夜夜久久| 九九久久99综合一区二区| 久久无码AV中文出轨人妻| 伊人久久综在合线亚洲2019| 国内精品综合久久久40p| 久久国产精品免费一区二区三区| 亚洲AV无码久久精品成人| 久久免费视频6| 狠狠色综合网站久久久久久久| 91精品国产9l久久久久| 亚洲乱码精品久久久久.. | 亚洲va久久久噜噜噜久久狠狠| 久久精品国产只有精品66| 狠色狠色狠狠色综合久久| 久久国产欧美日韩精品| 丰满少妇人妻久久久久久| 日韩精品久久久久久久电影蜜臀| 亚洲AⅤ优女AV综合久久久| 久久中文字幕无码专区| 久久精品免费大片国产大片| 88久久精品无码一区二区毛片| 久久精品9988| 成人国内精品久久久久影院| 国产精品福利一区二区久久| 情人伊人久久综合亚洲| 51久久夜色精品国产| 久久嫩草影院免费看夜色|