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

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

?? ansistring.c

?? vxworks5.5.1源代碼。完整源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
01c,25feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,08jul92,smb  written and documented.*//*DESCRIPTIONINCLUDE FILES: string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "string.h"/********************************************************************************* strpbrk - find the first occurrence in a string of a character from a given set (ANSI)** This routine locates the first occurrence in string <s1> of any character* from string <s2>.** INCLUDE FILES: string.h** RETURNS:* A pointer to the character found in <s1>, or* NULL if no character from <s2> occurs in <s1>.** SEE ALSO: strcspn()*/char * strpbrk    (    const char * s1,       /* string to search */    const char * s2        /* set of characters to look for in <s1> */    )    {    char *scanp;    int   c;    int   sc;    while ((c = *s1++) != 0)			/* wait until end of string */	{	/* loop, searching for character */	for (scanp = CHAR_FROM_CONST(s2); (sc = *scanp++) != 0;)	    {	    if (sc == c)		return (CHAR_FROM_CONST(s1 - 1));	    }	}    return (NULL);    }/* strrchr.c - string search, string *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01c,25feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,08jul92,smb  written and documented.*//*DESCRIPTIONINCLUDE FILES: string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "string.h"/******************************************************************************** strrchr - find the last occurrence of a character in a string (ANSI)** This routine locates the last occurrence of <c> in the string pointed* to by <s>.  The terminating null is considered to be part of the string.** INCLUDE FILES: string.h** RETURNS:* A pointer to the last occurrence of the character, or* NULL if the character is not found.*/char * strrchr    (    const char * s,         /* string to search */    int          c          /* character to look for */    )    {    char *save = NULL;    do					/* loop, searching for character */	{	if (*s == (char) c)	    save = CHAR_FROM_CONST (s);        } while (*s++ != EOS);    return (CHAR_FROM_CONST(save));    }/* strspn.c - string search, string *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01c,25feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,08jul92,smb  written and documented.*//*DESCRIPTIONINCLUDE FILES: string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "string.h"/******************************************************************************** strspn - return the string length up to the first character not in a given set (ANSI)** This routine computes the length of the maximum initial segment of* string <s> that consists entirely of characters from the string <sep>.** INCLUDE FILES: string.h** RETURNS:* The length of the string segment.** SEE ALSO: strcspn()*/ size_t strspn    (    const char * s,             /* string to search */    const char * sep            /* set of characters to look for in <s> */    )    {    const char *save;    const char *p;    char c1;    char c2;    for (save = s + 1; (c1 = *s++) != EOS; )	for (p = sep; (c2 = *p++) != c1; )	    {	    if (c2 == EOS)		return (s - save);            }    return (s - save);    }/* strstr.c - file for string *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01c,25feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,08jul92,smb  written and documented.*//*DESCRIPTIONINCLUDE FILES: string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "string.h"/******************************************************************************** strstr - find the first occurrence of a substring in a string (ANSI)** This routine locates the first occurrence in string <s>* of the sequence of characters (excluding the terminating null character)* in the string <find>.** INCLUDE FILES: string.h** RETURNS:* A pointer to the located substring, or <s> if <find> points to a* zero-length string, or NULL if the string is not found.*/char * strstr    (    const char * s,        /* string to search */    const char * find      /* substring to look for */    )    {    char *t1;    char *t2;    char c;    char c2;    if ((c = *find++) == EOS)		/* <find> an empty string */	return (CHAR_FROM_CONST(s));    FOREVER	{	while (((c2 = *s++) != EOS) && (c2 != c))	    ;	if (c2 == EOS)	    return (NULL);	t1 = CHAR_FROM_CONST(s);	t2 = CHAR_FROM_CONST(find); 	while (((c2 = *t2++) != 0) && (*t1++ == c2))	    ;	if (c2 == EOS)	    return (CHAR_FROM_CONST(s - 1));	}    }/* strtok.c - file for string *//* Copyright 1992-1995 Wind River Systems, Inc. *//*modification history--------------------01d,23oct95,jdi  doc: added comment that input string will be		    changed (SPR 4874).01c,25feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,08jul92,smb  written and documented.*//*DESCRIPTIONINCLUDE FILES: string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "string.h"/******************************************************************************** strtok - break down a string into tokens (ANSI)** A sequence of calls to this routine breaks the string <string> into a* sequence of tokens, each of which is delimited by a character from the* string <separator>.  The first call in the sequence has <string> as its* first argument, and is followed by calls with a null pointer as their* first argument.  The separator string may be different from call to call.* * The first call in the sequence searches <string> for the first character* that is not contained in the current separator string.  If the character* is not found, there are no tokens in <string> and strtok() returns a* null pointer.  If the character is found, it is the start of the first* token.* * strtok() then searches from there for a character that is contained in the* current separator string.  If the character is not found, the current* token expands to the end of the string pointed to by <string>, and* subsequent searches for a token will return a null pointer.  If the* character is found, it is overwritten by a null character, which* terminates the current token.  strtok() saves a pointer to the following* character, from which the next search for a token will start.* (Note that because the separator character is overwritten by a null* character, the input string is modified as a result of this call.)* * Each subsequent call, with a null pointer as the value of the first* argument, starts searching from the saved pointer and behaves as* described above.* * The implementation behaves as if strtok() is called by no library functions.** REENTRANCY* This routine is not reentrant; the reentrant form is strtok_r().** INCLUDE FILES: string.h* * RETURNS* A pointer to the first character of a token, or a NULL pointer if there is* no token.** SEE ALSO: strtok_r()*/ char * strtok    (    char *       string,	/* string */    const char * separator	/* separator indicator */    )    {    static char *last = NULL;    return (strtok_r (string, separator, &last));    }/* strtok_r.c - file for string *//* Copyright 1992-1995 Wind River Systems, Inc. *//*modification history--------------------01d,23oct95,jdi  doc: added comment that input string will be		    changed (SPR 4874).01c,25feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,08jul92,smb  written and documented.*//*DESCRIPTIONINCLUDE FILES: string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "string.h"/******************************************************************************* strtok_r - break down a string into tokens (reentrant) (POSIX)** This routine considers the null-terminated string <string> as a sequence* of zero or more text tokens separated by spans of one or more characters* from the separator string <separators>.  The argument <ppLast> points to a* user-provided pointer which in turn points to the position within <string>* at which scanning should begin.** In the first call to this routine, <string> points to a null-terminated* string; <separators> points to a null-terminated string of separator* characters; and <ppLast> points to a NULL pointer.  The function returns a* pointer to the first character of the first token, writes a null character* into <string> immediately following the returned token, and updates the* pointer to which <ppLast> points so that it points to the first character* following the null written into <string>.  (Note that because the* separator character is overwritten by a null character, the input string* is modified as a result of this call.)** In subsequent calls <string> must be a NULL pointer and <ppLast> must* be unchanged so that subsequent calls will move through the string <string>,* returning successive tokens until no tokens remain.  The separator* string <separators> may be different from call to call.  When no token* remains in <string>, a NULL pointer is returned.** INCLUDE FILES: string.h* * RETURNS* A pointer to the first character of a token,* or a NULL pointer if there is no token.** SEE ALSO: strtok()*/char * strtok_r    (    char *       string,	/* string to break into tokens */    const char * separators,	/* the separators */    char **      ppLast		/* pointer to serve as string index */    )    {    if ((string == NULL) && ((string = *ppLast) == NULL))	return (NULL);    if (*(string += strspn (string, separators)) == EOS)	return (*ppLast = NULL);    if ((*ppLast = strpbrk (string, separators)) != NULL)	*(*ppLast)++ = EOS;    return (string);    }/* strxfrm.c - file for string *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01d,25feb93,jdi  documentation cleanup for 5.1.01c,20sep92,smb  documentation additions01b,13jul92,smb  changed __cosave initialisation for MIPS.01a,08jul92,smb  written and documented.*//*DESCRIPTIONINCLUDE FILES: string.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "limits.h"#include "private/strxfrmP.h"/********************************************************************************* strxfrm - transform up to <n> characters of <s2> into <s1> (ANSI)** This routine transforms string <s2> and places the resulting string in <s1>.* The transformation is such that if strcmp() is applied to two transformed* strings, it returns a value greater than, equal to, or less than zero,* corresponding to the result of the strcoll() function applied to the same* two original strings.  No more than <n> characters are placed into the* resulting <s1>, including the terminating null character.  If <n> is zero,* <s1> is permitted to be a NULL pointer.  If copying takes place between* objects that overlap, the behavior is undefined.** INCLUDE FILES: string.h** RETURNS:* The length of the transformed string, not including the terminating null* character.  If the value is <n> or more, the contents of <s1> are* indeterminate.** SEE ALSO: strcmp(), strcoll()*/size_t strxfrm    (    char *	 s1,		/* string out */    const char * s2,		/* string in */    size_t  	 n		/* size of buffer */    )    {    size_t	   i;    size_t	   nx = 0;    const uchar_t *s = (const uchar_t *)s2;    char	   buf[32];    __cosave 	   state;    /* stores state information */    state.__state = EOS;    state.__wchar = 0;    while (nx < n)				/* translate and deliver */    	{    	i = __strxfrm (s1, &s, nx - n, &state);    	s1 += i; 	nx += i;    	if ((i > 0) && (s1[-1] == EOS))	    return (nx - 1);    	if (*s == EOS)	    s = (const uchar_t *) s2;    	}    FOREVER					/* translate the rest */     	{    	i = __strxfrm (buf, &s, sizeof (buf), &state);    	nx += i;    	if ((i > 0) && (buf [i - 1] == EOS))	    return (nx - 1);    	if (*s == EOS)	    s = (const uchar_t *) s2;    	}    }/*********************************************************************************  __strxfrm - translates string into an easier form for strxfrm() and strcoll()** This routine performs the mapping as a finite state machine executing* the table __wcstate defined in xstate.h.** NOMANUAL*/size_t __strxfrm    (    char *	  	sout,		/* out string */    const uchar_t **	ppsin,		/* pointer to character within string */    size_t 		size,		/* size of string */    __cosave *		ps		/* state information */    )    {    const ushort_t *	stab;    ushort_t	 	code;    char 		state = ps->__state;	/* initial state */    BOOL 		leave = FALSE;    int 		limit = 0;    int 		nout = 0;    const uchar_t *	sin = *ppsin;		/* in string */    ushort_t		wc = ps->__wchar;    FOREVER					/* do state transformation */    	{	    	if ((_NSTATE <= state) ||    	    ((stab = __costate.__table [state]) == NULL) ||    	    ((code = stab [*sin]) == 0))    	    break;		/* error */    	state = (code & ST_STATE) >> ST_STOFF;    	if ( code & ST_FOLD)    		wc = wc & ~UCHAR_MAX | code & ST_CH;    	if ( code & ST_ROTATE)    		wc = wc >> CHAR_BIT & UCHAR_MAX | wc << CHAR_BIT;    	if ((code & ST_OUTPUT) &&    	    (((sout[nout++] = code & ST_CH ? code : wc) == EOS) ||    	    (size <= nout)))    		leave = TRUE;    	if (code & ST_INPUT)    	    if (*sin != EOS)	        {    	        ++sin; 	        limit = 0;	        }    	    else    	    	leave = TRUE;    	if (leave)    	    {		/* save state and return */    	    *ppsin = sin;    	    ps->__state = state;    	    ps->__wchar = wc;    	    return (nout);    	    }    	}    sout[nout++] = EOS;		/* error */    *ppsin = sin;    ps->__state = _NSTATE;    return (nout);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成在线播放网站岛国| 黄一区二区三区| 蜜桃视频一区二区| 成人视屏免费看| 日韩欧美久久一区| 精品无人码麻豆乱码1区2区| 99精品欧美一区| 久久久久青草大香线综合精品| 亚洲国产精品自拍| 91亚洲资源网| 国产精品视频一二三区| 欧美96一区二区免费视频| 在线一区二区三区做爰视频网站| 精品国产乱子伦一区| 日本美女一区二区三区| 色94色欧美sute亚洲13| 亚洲日本在线天堂| 国产成人av影院| 久久久国产精品午夜一区ai换脸| 日欧美一区二区| 69堂亚洲精品首页| 亚洲国产日产av| 欧美午夜精品一区| 一区二区久久久久久| 在线观看国产91| 亚洲欧美电影院| 色噜噜狠狠成人中文综合| 亚洲青青青在线视频| 91亚洲精品久久久蜜桃网站| 中文字幕乱码久久午夜不卡 | 国产一区二区三区四| 日韩欧美国产小视频| 日韩电影在线一区| 日韩欧美在线综合网| 日本女优在线视频一区二区| 这里只有精品免费| 看片的网站亚洲| wwwwww.欧美系列| 国产精品一区二区久久不卡| 欧美国产日韩a欧美在线观看| 国产不卡在线一区| 国产精品福利在线播放| 色综合久久久久久久久久久| 亚洲国产精品麻豆| 91精品黄色片免费大全| 免费精品视频在线| 久久久久久久电影| 成人不卡免费av| 亚洲一区二区三区四区五区中文| 欧美性受xxxx| 激情综合亚洲精品| 欧美激情一区二区| 久久午夜电影网| 成人午夜av电影| 亚洲一区二区三区小说| 日韩一区二区三区av| 国产成人亚洲综合a∨猫咪| 亚洲视频一区二区在线观看| 在线观看91精品国产入口| 日韩成人一级片| 久久精品视频免费| 色婷婷av一区二区三区gif| 日韩福利电影在线| 国产精品人人做人人爽人人添| 91在线精品一区二区三区| 日韩一区精品视频| 久久精品在线观看| 欧美在线|欧美| 国产美女精品人人做人人爽| 亚洲精品久久7777| 久久久久久麻豆| 欧美色综合网站| 成人蜜臀av电影| 秋霞电影网一区二区| 最新中文字幕一区二区三区| 6080国产精品一区二区| 国产91富婆露脸刺激对白| 亚洲国产成人av网| 国产精品久久一卡二卡| 欧美一区二区三区啪啪| 91视频www| 国产精品一区在线| 日韩和欧美一区二区三区| 国产日韩欧美一区二区三区乱码| 欧美综合在线视频| 成人99免费视频| 麻豆91在线播放免费| 亚洲一区二区在线视频| 国产精品网站在线| 欧美大片日本大片免费观看| 在线观看视频一区二区 | 91丨九色丨蝌蚪丨老版| 韩国v欧美v日本v亚洲v| 亚洲第一激情av| 国产精品嫩草99a| 国产午夜一区二区三区| 日韩午夜电影在线观看| 欧美三级日韩三级| 在线视频一区二区三| 91丨porny丨在线| 成人精品小蝌蚪| 成人午夜伦理影院| 国产精华液一区二区三区| 麻豆成人在线观看| 琪琪一区二区三区| 日韩av高清在线观看| 亚洲va天堂va国产va久| 夜夜精品浪潮av一区二区三区| 国产精品免费视频网站| 中文乱码免费一区二区| 国产肉丝袜一区二区| 国产亚洲欧美色| 久久久亚洲精品一区二区三区 | 国产精品色哟哟| 欧美激情中文字幕| 欧美激情在线一区二区三区| 久久嫩草精品久久久精品一| 久久久www免费人成精品| 国产日产欧产精品推荐色| 国产日本一区二区| 中文字幕中文字幕一区二区| 中文字幕一区日韩精品欧美| 亚洲女人小视频在线观看| 一区二区三区电影在线播| 亚洲自拍偷拍av| 香蕉久久一区二区不卡无毒影院 | 亚洲亚洲精品在线观看| 亚洲最色的网站| 亚洲在线中文字幕| 丝袜美腿高跟呻吟高潮一区| 日本欧美加勒比视频| 韩国成人在线视频| 成人激情动漫在线观看| 一本色道久久加勒比精品 | 日韩欧美一区二区免费| 日韩精品最新网址| 国产精品人妖ts系列视频| 亚洲乱码国产乱码精品精小说 | 亚洲国产一区二区三区| 午夜精品久久久久久久99水蜜桃 | ww亚洲ww在线观看国产| 国产精品少妇自拍| 一区二区三区加勒比av| 奇米亚洲午夜久久精品| 国产一区二区三区黄视频 | 欧美不卡一区二区| 国产欧美日韩三级| 亚洲宅男天堂在线观看无病毒| 日本vs亚洲vs韩国一区三区 | 欧美日韩精品免费| 久久在线观看免费| 一区二区三区在线观看网站| 午夜精彩视频在线观看不卡| 国产成人夜色高潮福利影视| 欧美在线观看一区二区| 久久亚洲免费视频| 亚洲成人激情自拍| 高清av一区二区| 欧美日韩一区小说| 中文字幕国产一区二区| 三级成人在线视频| 不卡的av中国片| 精品欧美黑人一区二区三区| 亚洲乱码国产乱码精品精的特点| 美女视频黄a大片欧美| 97久久人人超碰| 精品成人a区在线观看| 亚洲一二三区在线观看| 粉嫩高潮美女一区二区三区| 欧美色图天堂网| 国产精品短视频| 麻豆91在线看| 91精品国产综合久久精品app| 国产精品天干天干在线综合| 久久99精品久久久久久久久久久久| 一本大道久久a久久综合| 国产人成亚洲第一网站在线播放| 香蕉影视欧美成人| 欧美亚洲国产一区二区三区| 亚洲欧洲www| 成人h版在线观看| 久久麻豆一区二区| 美国十次综合导航| 在线观看91精品国产麻豆| 玉米视频成人免费看| 99国产精品久久久久久久久久久| 久久只精品国产| 国产一区二区三区日韩| 日韩一区二区三区在线观看| 日韩国产精品久久| 欧美日韩高清在线| 亚洲成人资源网| 欧美日韩一区二区三区在线| 一区二区三区不卡视频在线观看| caoporn国产精品| 国产精品久久久久久亚洲毛片| 国产成人一区二区精品非洲| 国产亚洲精品7777| 国产精品综合av一区二区国产馆| 精品噜噜噜噜久久久久久久久试看|