亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? _filbuf.c

?? C標準庫源代碼,能提高對C的理解,不錯的哦
?? C
字號:
/***
*_filbuf.c - fill buffer and get character
*
*       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
*       defines _filbuf() - fill buffer and read first character, allocate
*       buffer if there is none.  Used from getc().
*       defines _filwbuf() - fill buffer and read first wide character, allocate
*       buffer if there is none.  Used from getwc().
*
*******************************************************************************/

#ifdef _WIN32


#include <cruntime.h>
#include <stdio.h>
#include <file2.h>
#include <io.h>
#include <dbgint.h>
#include <malloc.h>
#include <internal.h>
#include <msdos.h>
#include <wchar.h>
#ifdef _MT
#include <mtdll.h>
#endif  /* _MT */
#include <tchar.h>

#ifndef _UNICODE

/***
*int _filbuf(stream) - fill buffer and get first character
*
*Purpose:
*       get a buffer if the file doesn't have one, read into it, return first
*       char. try to get a buffer, if a user buffer is not assigned. called
*       only from getc; intended for use only within library. assume no input
*       stream is to remain unbuffered when memory is available unless it is
*       marked _IONBF. at worst, give it a single char buffer. the need for a
*       buffer, no matter how small, becomes evident when we consider the
*       ungetc's necessary in scanf
*
*       [NOTE: Multi-thread - _filbuf() assumes that the caller has aquired
*       the stream lock, if needed.]
*
*Entry:
*       FILE *stream - stream to read from
*
*Exit:
*       returns first character from buffer (next character to be read)
*       returns EOF if the FILE is actually a string, or not open for reading,
*       or if open for writing or if no more chars to read.
*       all fields in FILE structure may be changed except _file.
*
*Exceptions:
*
*******************************************************************************/

int __cdecl _filbuf (
        FILE *str
        )

#else  /* _UNICODE */

/***
*int _filwbuf(stream) - fill buffer and get first wide character
*
*Purpose:
*       get a buffer if the file doesn't have one, read into it, return first
*       char. try to get a buffer, if a user buffer is not assigned. called
*       only from getc; intended for use only within library. assume no input
*       stream is to remain unbuffered when memory is available unless it is
*       marked _IONBF. at worst, give it a single char buffer. the need for a
*       buffer, no matter how small, becomes evident when we consider the
*       ungetc's necessary in scanf
*
*       [NOTE: Multi-thread - _filwbuf() assumes that the caller has aquired
*       the stream lock, if needed.]
*
*Entry:
*       FILE *stream - stream to read from
*
*Exit:
*       returns first wide character from buffer (next character to be read)
*       returns WEOF if the FILE is actually a string, or not open for reading,
*       or if open for writing or if no more chars to read.
*       all fields in FILE structure may be changed except _file.
*
*Exceptions:
*
*******************************************************************************/

int __cdecl _filwbuf (
        FILE *str
        )

#endif  /* _UNICODE */

{

        REG1 FILE *stream;

        _ASSERTE(str != NULL);

        /* Init pointer to _iob2 entry. */
        stream = str;

        if (!inuse(stream) || stream->_flag & _IOSTRG)
                return(_TEOF);

        if (stream->_flag & _IOWRT) {
                stream->_flag |= _IOERR;
                return(_TEOF);
        }

        stream->_flag |= _IOREAD;

        /* Get a buffer, if necessary. */

        if (!anybuf(stream))
                _getbuf(stream);
        else
                stream->_ptr = stream->_base;

        stream->_cnt = _read(_fileno(stream), stream->_base, stream->_bufsiz);

#ifndef _UNICODE
        if ((stream->_cnt == 0) || (stream->_cnt == -1)) {
#else  /* _UNICODE */
        if ((stream->_cnt == 0) || (stream->_cnt == 1) || stream->_cnt == -1) {
#endif  /* _UNICODE */
                stream->_flag |= stream->_cnt ? _IOERR : _IOEOF;
                stream->_cnt = 0;
                return(_TEOF);
        }

        if (  !(stream->_flag & (_IOWRT|_IORW)) &&
              ((_osfile_safe(_fileno(stream)) & (FTEXT|FEOFLAG)) ==
                (FTEXT|FEOFLAG)) )
                stream->_flag |= _IOCTRLZ;
        /* Check for small _bufsiz (_SMALL_BUFSIZ). If it is small and
           if it is our buffer, then this must be the first _filbuf after
           an fseek on a read-access-only stream. Restore _bufsiz to its
           larger value (_INTERNAL_BUFSIZ) so that the next _filbuf call,
           if one is made, will fill the whole buffer. */
        if ( (stream->_bufsiz == _SMALL_BUFSIZ) && (stream->_flag &
              _IOMYBUF) && !(stream->_flag & _IOSETVBUF) )
        {
                stream->_bufsiz = _INTERNAL_BUFSIZ;
        }
#ifndef _UNICODE
        stream->_cnt--;
        return(0xff & *stream->_ptr++);
#else  /* _UNICODE */
        stream->_cnt -= sizeof(wchar_t);
        return (0xffff & *((wchar_t *)(stream->_ptr))++);
#endif  /* _UNICODE */

}


#else  /* _WIN32 */

#if defined (_M_MPPC) || defined (_M_M68K)


#include <cruntime.h>
#include <stdio.h>
#include <file2.h>
#include <io.h>
#include <dbgint.h>
#include <malloc.h>
#include <internal.h>
#include <msdos.h>

/***
*int _filbuf(stream) - fill buffer and get first character
*
*Purpose:
*       get a buffer if the file doesn't have one, read into it, return first
*       char. try to get a buffer, if a user buffer is not assigned. called
*       only from getc; intended for use only within library. assume no input
*       stream is to remain unbuffered when memory is available unless it is
*       marked _IONBF. at worst, give it a single char buffer. the need for a
*       buffer, no matter how small, becomes evident when we consider the
*       ungetc's necessary in scanf
*
*Entry:
*       FILE *stream - stream to read from
*
*Exit:
*       returns first character from buffer (next character to be read)
*       returns EOF if the FILE is actually a string, or not open for reading,
*       or if open for writing or if no more chars to read.
*       all fields in FILE structure may be changed except _file.
*
*Exceptions:
*
*******************************************************************************/

int __cdecl _filbuf (
        FILE *str
        )
{
        REG1 FILE *stream;

        _ASSERTE(str != NULL);

        /* Init pointer to _iob2 entry. */
        stream = str;

        if (!inuse(stream) || stream->_flag & _IOSTRG)
                return(EOF);

        if (stream->_flag & _IOWRT) {
                stream->_flag |= _IOERR;
                return(EOF);
        }

        stream->_flag |= _IOREAD;

        /* Get a buffer, if necessary. */

        if (!anybuf(stream))
                _getbuf(stream);
        else
                stream->_ptr = stream->_base;

        stream->_cnt = _read(_fileno(stream), stream->_base, stream->_bufsiz);

        if ((stream->_cnt == 0) || (stream->_cnt == -1)) {
                stream->_flag |= stream->_cnt ? _IOERR : _IOEOF;
                stream->_cnt = 0;
                return(EOF);
        }

        if (  !(stream->_flag & (_IOWRT|_IORW)) &&
        ((_osfile[_fileno(stream)] & (FTEXT|FEOFLAG)) == (FTEXT|FEOFLAG)) )
                stream->_flag |= _IOCTRLZ;

        stream->_cnt--;

        return(0xff & *stream->_ptr++);
}


#endif  /* defined (_M_MPPC) || defined (_M_M68K) */

#endif  /* _WIN32 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本久久一区二区| 波多野结衣在线一区| 亚洲欧美日韩中文播放| 欧美激情一区二区三区全黄| 国产精品成人在线观看| 久久久精品免费网站| 欧美成人一区二区三区在线观看| 日韩免费一区二区| 精品美女一区二区| 久久久久久免费网| 亚洲欧洲精品天堂一级| 一个色妞综合视频在线观看| 亚洲一区二区三区四区在线 | 久久老女人爱爱| 久久久激情视频| 国产精品福利一区| 一个色妞综合视频在线观看| 亚洲国产毛片aaaaa无费看| 日韩中文字幕一区二区三区| 天堂蜜桃91精品| 国产一区二区精品久久| 国产精品996| www.av亚洲| 99久久久精品| 一区二区三区 在线观看视频| 黑人精品欧美一区二区蜜桃 | 91香蕉视频mp4| 在线播放欧美女士性生活| 亚洲国产精品久久人人爱蜜臀| 免费亚洲电影在线| 精品无码三级在线观看视频 | 日韩欧美的一区| 欧美一级日韩免费不卡| 欧美少妇xxx| 91精品在线一区二区| 337p日本欧洲亚洲大胆精品| 美女脱光内衣内裤视频久久网站| 欧美成人综合网站| 国产乱对白刺激视频不卡| 91麻豆精品国产| 日本一区二区动态图| 亚洲精品视频在线| 欧美亚洲一区二区在线观看| 国产精品久久毛片| 精品国产凹凸成av人导航| 亚洲精品在线观| 久久久精品国产免大香伊| 国产日韩欧美高清| 午夜精品一区二区三区电影天堂| 国产成人av在线影院| 欧美一级一区二区| 一区二区国产盗摄色噜噜| 国产一区在线视频| 91精品欧美福利在线观看| 中国色在线观看另类| 久久99国产乱子伦精品免费| 欧美日韩精品一区二区三区| 中文字幕制服丝袜成人av| 国产一区二区不卡在线| 91精品婷婷国产综合久久性色| 亚洲欧美激情插| 欧美最猛黑人xxxxx猛交| 亚洲视频每日更新| 91在线精品一区二区三区| 久久精品一级爱片| 国产激情一区二区三区| 久久久久久久久久久久久久久99 | 日韩不卡一区二区三区| 97se亚洲国产综合自在线不卡| 国产亚洲欧美在线| 国产精品99久久久久久宅男| 久久久噜噜噜久噜久久综合| 国产一区二区三区高清播放| 精品国产免费一区二区三区四区| 爽爽淫人综合网网站| 欧美三电影在线| 午夜精品国产更新| 欧美人与z0zoxxxx视频| 日本午夜一区二区| 欧美大片顶级少妇| 国产99久久久久久免费看农村| 久久久久久久久一| 成人av电影在线网| 看电视剧不卡顿的网站| 日韩欧美电影一区| 国产精品影视在线观看| 中文字幕一区二区在线播放| www.亚洲精品| 一区二区日韩电影| 欧美一区二区不卡视频| 国产在线播精品第三| 国产网红主播福利一区二区| a亚洲天堂av| 亚洲成人一区二区在线观看| 在线观看91av| 国产美女一区二区| 亚洲日本成人在线观看| 欧美高清精品3d| 国产精品影视天天线| 亚洲视频免费看| 日韩三级在线免费观看| 国产91高潮流白浆在线麻豆| 一区二区三区中文在线| 日韩欧美卡一卡二| 不卡av在线网| 麻豆一区二区99久久久久| 中文字幕一区二区三区四区| 欧美日韩高清一区二区| 国产一区二区三区高清播放| 一区二区三区日韩| 精品国产伦一区二区三区观看方式| eeuss影院一区二区三区| 日韩av一区二| 亚洲欧美自拍偷拍| 精品免费视频一区二区| 色婷婷国产精品| 国产电影一区在线| 日韩在线一区二区三区| 最新日韩在线视频| 久久久国产精华| 欧美日韩二区三区| 97se狠狠狠综合亚洲狠狠| 国产美女精品人人做人人爽| 亚洲国产精品久久人人爱蜜臀| 国产亚洲成年网址在线观看| 欧美精品一卡二卡| 色婷婷亚洲精品| 成人黄色小视频在线观看| 九色综合国产一区二区三区| 亚洲综合色视频| 日韩毛片视频在线看| 久久久噜噜噜久久中文字幕色伊伊 | 免费观看30秒视频久久| 一个色在线综合| 亚洲视频一区在线观看| 国产日韩精品一区二区三区| 678五月天丁香亚洲综合网| 色婷婷精品久久二区二区蜜臀av| 高清不卡一二三区| 国产成人三级在线观看| 激情av综合网| 极品瑜伽女神91| 乱一区二区av| 久久精品噜噜噜成人av农村| 日韩不卡一二三区| 日本不卡123| 蜜臀av国产精品久久久久| 午夜精品久久久久久久| 婷婷国产v国产偷v亚洲高清| 亚洲图片欧美视频| 性做久久久久久免费观看欧美| 一区二区成人在线| 亚洲午夜影视影院在线观看| 亚洲精品高清视频在线观看| 亚洲三级在线观看| 一区二区在线观看免费| 精品影视av免费| 国产一区二区调教| 国内精品久久久久影院薰衣草 | 国产美女精品人人做人人爽| 狠狠色丁香九九婷婷综合五月| 久久 天天综合| 国产高清成人在线| 成人av在线资源网| 91看片淫黄大片一级在线观看| 色就色 综合激情| 欧美日韩一二区| 91精品国产色综合久久不卡电影| 欧美一区二区三区日韩视频| 日韩视频在线你懂得| 久久色.com| 亚洲人妖av一区二区| 亚洲国产综合人成综合网站| 日韩综合小视频| 国产91综合一区在线观看| 91视频免费看| 日韩欧美中文字幕精品| 久久精品日产第一区二区三区高清版 | 91美女片黄在线观看91美女| 色综合久久久久| 日韩免费观看2025年上映的电影 | 成人午夜精品一区二区三区| 色噜噜狠狠成人网p站| 欧美美女直播网站| 久久婷婷国产综合国色天香| 亚洲视频你懂的| 国产一级精品在线| 欧洲精品视频在线观看| 久久综合九色欧美综合狠狠 | 青青草97国产精品免费观看无弹窗版| 在线亚洲一区二区| 91精品国产色综合久久ai换脸| 国产欧美一区二区精品性| 午夜精品一区二区三区免费视频| 国产999精品久久久久久| 欧美剧在线免费观看网站| 中文字幕一区二区三中文字幕| 青青草97国产精品免费观看无弹窗版| av激情综合网| 久久精品亚洲精品国产欧美 |