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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ungetc.c

?? vxworks的完整的源代碼
?? C
字號:
/* ungetc.c - return a character to a stream. stdio.h *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01c,05mar93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,29jul92,jcf  Added OBJ_VERIFY	   +smb  taken from UCB stdio*//*DESCRIPTION * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE.INCLUDE FILE: stdio.h, stdlib.h, string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "stdio.h"#include "stdlib.h"#include "string.h"#include "objLib.h"#include "private/stdioP.h"/******************************************************************************** __submore - internal routine** Expand the ungetc buffer `in place'.  That is, adjust fp->_p when* the buffer moves, so that it points the same distance from the end,* and move the bytes in the buffer around as necessary so that they* are all at the end (stack-style).* * INCLUDE FILES: stdio.h ** RETURNS: * NOMANUAL*/static int __submore    (    FAST FILE *fp    )    {    FAST int       i;    FAST uchar_t * p;    if (fp->_ub._base == fp->_ubuf) 	{	/* Get a new buffer (rather than expanding the old one) */	if ((p = malloc ((size_t)BUFSIZ)) == NULL)	    return (EOF);	fp->_ub._base = p;	fp->_ub._size = BUFSIZ;	p += BUFSIZ - sizeof(fp->_ubuf);	for (i = sizeof(fp->_ubuf); --i >= 0;)	    p[i] = fp->_ubuf[i];	fp->_p = p;	return (0);	}    i = fp->_ub._size;    p = realloc (fp->_ub._base, i << 1);    if (p == NULL)	return (EOF);    (void) bcopy ((void *)p, (void *)(p + i), (size_t)i);    fp->_p	  = p + i;    fp->_ub._base = p;    fp->_ub._size = i << 1;    return (0);    }/******************************************************************************** ungetc - push a character back into an input stream (ANSI)** This routine pushes a character <c> (converted to an `unsigned char') back* into the specified input stream.  The pushed-back characters will be* returned by subsequent reads on that stream in the reverse order of their* pushing.  A successful intervening call on the stream to a file* positioning function (fseek(), fsetpos(), or rewind()) discards any* pushed-back characters for the stream.  The external storage corresponding* to the stream is unchanged.** One character of push-back is guaranteed.  If ungetc() is called too many* times on the same stream without an intervening read or file positioning* operation, the operation may fail.** If the value of <c> equals EOF, the operation fails and the * input stream is unchanged.** A successful call to ungetc() clears the end-of-file indicator for the* stream.  The value of the file position indicator for the stream after* reading or discarding all pushed-back characters is the same as it was* before the character were pushed back.  For a text stream, the value of* its file position indicator after a successful call to ungetc() is* unspecified until all pushed-back characters are read or discarded.* For a binary stream, the file position indicator is decremented by each* successful call to ungetc(); if its value was zero before a call, it is* indeterminate after the call.* * INCLUDE: stdio.h ** RETURNS:* The pushed-back character after conversion, or EOF if the operation fails.** SEE ALSO: getc(), fgetc()*/int ungetc    (    int		 c,	/* character to push */    FAST FILE *	 fp	/* input stream */    )    {    if (OBJ_VERIFY (fp, fpClassId) != OK)	return (EOF);    if (c == EOF)	return (EOF);    if ((fp->_flags & __SRD) == 0) 	{	/*	 * Not already reading: no good unless reading-and-writing.	 * Otherwise, flush any current write stuff.	 */	if ((fp->_flags & __SRW) == 0)	    return (EOF);	if (fp->_flags & __SWR) 	    {	    if (__sflush(fp))		return (EOF);	    fp->_flags  &= ~__SWR;	    fp->_w	 = 0;	    fp->_lbfsize = 0;	    }	fp->_flags |= __SRD;	}    c = (uchar_t) c;    /*     * If we are in the middle of ungetc'ing, just continue.     * This may require expanding the current ungetc buffer.     */    if (HASUB(fp)) 	{	if (fp->_r >= fp->_ub._size && __submore(fp))	    return (EOF);	*--fp->_p = c;	fp->_r++;	return (c);	}    /*     * If we can handle this by simply backing up, do so,     * but never replace the original character.     * (This makes sscanf() work when scanning `const' data.)     */    if ((fp->_bf._base != NULL) && 	(fp->_p > fp->_bf._base) &&	(fp->_p[-1] == c)) 	{	fp->_p--;	fp->_r++;	return (c);	}    /*     * Create an ungetc buffer.     * Initially, we will use the `reserve' buffer.     */    fp->_ur				= fp->_r;    fp->_up				= fp->_p;    fp->_ub._base			= fp->_ubuf;    fp->_ub._size			= sizeof(fp->_ubuf);    fp->_ubuf[sizeof(fp->_ubuf) - 1]	= c;    fp->_p				= &fp->_ubuf[sizeof(fp->_ubuf) - 1];    fp->_r				= 1;    return (c);    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜亚洲精品午夜鲁丝片| 综合久久一区二区三区| 天堂在线亚洲视频| 欧美高清性hdvideosex| 亚洲国产欧美在线人成| 欧美探花视频资源| 日韩精品三区四区| 日韩三级中文字幕| 韩国av一区二区三区在线观看| 精品久久人人做人人爽| 国产一区二区在线看| 热久久免费视频| 成人免费三级在线| 色综合久久99| 91精品国产手机| 久久婷婷国产综合国色天香| ●精品国产综合乱码久久久久| 精品一区二区三区影院在线午夜 | 欧美一卡二卡在线| 日韩中文字幕亚洲一区二区va在线 | 国产精品网站在线播放| eeuss鲁片一区二区三区| 一区二区三区精品在线| 欧美一级夜夜爽| 国产不卡免费视频| 亚洲一卡二卡三卡四卡无卡久久| 337p亚洲精品色噜噜噜| 国产成人在线视频网站| 亚洲综合一二区| 久久久99精品免费观看| 在线日韩国产精品| 国产激情精品久久久第一区二区| 一区二区三区在线免费播放| 精品裸体舞一区二区三区| 91亚洲精品乱码久久久久久蜜桃| 日韩黄色小视频| 中文字幕在线不卡国产视频| 欧美一区二区高清| 99这里只有精品| 国产一区二区主播在线| 一区二区高清免费观看影视大全 | 精品国产乱码久久久久久图片| 91视频观看视频| 久久aⅴ国产欧美74aaa| 亚洲综合区在线| 国产精品日韩精品欧美在线| 91精品国产综合久久蜜臀| 91视频在线观看免费| 国产经典欧美精品| 另类小说色综合网站| 亚洲线精品一区二区三区八戒| 国产精品视频线看| 精品国产乱码久久久久久老虎| 欧美日韩国产乱码电影| 91一区二区三区在线播放| 国产精品中文字幕一区二区三区| 日日夜夜免费精品| 亚洲妇女屁股眼交7| 亚洲图片你懂的| 欧美经典一区二区三区| 欧美成人猛片aaaaaaa| 欧美在线免费视屏| 色综合天天性综合| 懂色av中文一区二区三区| 国内精品视频一区二区三区八戒 | 精品sm在线观看| 欧美一级艳片视频免费观看| 欧美裸体bbwbbwbbw| 色婷婷综合久久久中文一区二区| 成人黄色国产精品网站大全在线免费观看| 久久精品国产一区二区| 日韩二区在线观看| 日本人妖一区二区| 轻轻草成人在线| 蜜芽一区二区三区| 久久成人免费网| 国产在线播放一区二区三区| 久久成人18免费观看| 老汉av免费一区二区三区| 捆绑变态av一区二区三区| 另类中文字幕网| 国产乱人伦精品一区二区在线观看| 久久成人精品无人区| 韩国欧美一区二区| 国产很黄免费观看久久| 国产91精品久久久久久久网曝门 | 夜夜揉揉日日人人青青一国产精品| 亚洲欧美另类综合偷拍| 亚洲综合色视频| 日韩专区中文字幕一区二区| 麻豆成人在线观看| 国模娜娜一区二区三区| 国产大陆精品国产| av在线不卡网| 欧美熟乱第一页| 日韩精品一区二区三区在线播放| 日韩精品中午字幕| 中文字幕国产精品一区二区| 日韩伦理电影网| 蜜臀久久久久久久| 国产69精品久久99不卡| 91免费国产视频网站| 欧洲av在线精品| 日韩一区二区三区三四区视频在线观看 | 亚洲精品日产精品乱码不卡| 亚洲高清不卡在线观看| 韩国视频一区二区| 91在线观看成人| 日韩亚洲欧美成人一区| 国产无遮挡一区二区三区毛片日本| 亚洲女子a中天字幕| 天天做天天摸天天爽国产一区| 麻豆精品视频在线观看视频| 国产成人a级片| 欧美日韩日日骚| 久久久国产精品午夜一区ai换脸| 亚洲视频资源在线| 久久se这里有精品| 欧美专区亚洲专区| 精品国产伦一区二区三区观看方式| 亚洲色欲色欲www| 麻豆精品新av中文字幕| 色综合久久久久久久| 精品处破学生在线二十三| 亚洲日本免费电影| 精品亚洲国内自在自线福利| 色哟哟国产精品免费观看| 日韩一区二区三区在线| 一区二区三区视频在线看| 黄色资源网久久资源365| 欧美在线免费观看亚洲| 中文文精品字幕一区二区| 日本成人超碰在线观看| 色综合一区二区| 亚洲国产精品t66y| 美女高潮久久久| 欧美日本一区二区三区| 国产精品久久免费看| 麻豆精品在线播放| 欧美电影一区二区三区| 亚洲男人天堂av网| 成人影视亚洲图片在线| 亚洲精品一区二区三区四区高清| 亚洲国产视频直播| 一本到高清视频免费精品| 久久久91精品国产一区二区精品| 亚洲成av人片| 欧美日韩中文另类| 亚洲欧美国产77777| 成人18视频在线播放| 国产午夜三级一区二区三| 国产在线精品一区在线观看麻豆| 日韩一级片网站| 三级亚洲高清视频| 欧美日韩免费在线视频| 亚洲免费视频成人| 91免费看片在线观看| 亚洲欧美日韩电影| 色久优优欧美色久优优| 亚洲视频中文字幕| 91看片淫黄大片一级在线观看| 国产精品久久久久影院色老大| 国产成人夜色高潮福利影视| 久久亚洲影视婷婷| 国产尤物一区二区| 国产亚洲欧美色| 国产美女精品在线| 久久久久久黄色| 国产福利精品导航| 中文字幕免费观看一区| 99久久综合国产精品| 综合激情网...| 日本精品一区二区三区高清| 亚洲精品欧美在线| 欧美三级电影在线观看| 午夜精品影院在线观看| 日韩一区二区在线看片| 国产一区二区美女诱惑| 国产无一区二区| 色先锋aa成人| 日韩成人av影视| 26uuu亚洲综合色欧美| 国产福利电影一区二区三区| 亚洲天堂中文字幕| 欧美日韩视频在线观看一区二区三区| 三级不卡在线观看| 国产亚洲福利社区一区| 99精品黄色片免费大全| 亚洲一区影音先锋| 91精品欧美综合在线观看最新| 久草在线在线精品观看| 国产精品午夜在线观看| 91国模大尺度私拍在线视频| 午夜一区二区三区视频| 欧美xxxxxxxx| 菠萝蜜视频在线观看一区| 亚洲一区在线看| 久久日韩粉嫩一区二区三区| 91香蕉视频mp4| 美女网站视频久久|