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

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

?? ansistring.c

?? vxworks操作系統(tǒng)的源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
    {    size_t sz;    /* loop until chars delivered */    do  	{        p->sout = (const uchar_t *) p->buf;        sz = __strxfrm (p->buf, &p->s1, sizeof (p->buf), &p->state);        if ((sz > 0) && (p->buf [sz - 1] == EOS))    	    return (sz - 1);        if (*p->s1 == EOS)	     p->s1 = p->s2;		/* rescan */        } while (sz == 0);    return (sz);    }	/***************************************************************************** strcoll - compare two strings as appropriate to LC_COLLATE  (ANSI)** This routine compares two strings, both interpreted as appropriate to the* LC_COLLATE category of the current locale.** INCLUDE FILES: string.h** RETURNS:* An integer greater than, equal to, or less than zero, according to whether* string <s1> is greater than, equal to, or less than string <s2> when both* are interpreted as appropriate to the current locale.*/int strcoll    (    const char * s1,	/* string 1 */    const char * s2	/* string 2 */    )    {    size_t n1 = 0;		/* size of string 1 */    size_t n2 = 0;		/* size of string 2 */    __sct1 st1;			/* transform structure for string 1 */    __sct1 st2;		 	/* transform structure for string 2 */    static const __cosave initial = 	{	0	};    /* compare s1[], s2[] using locale-dependant rules */    st1.s1	= (const uchar_t *)s1;	/* string transformation 1 */    st1.s2	= (const uchar_t *)s1;    st1.state	= initial;    st2.s1	= (const uchar_t *)s2;	/* string transformation 2 */    st2.s2	= (const uchar_t *)s2;    st2.state	= initial;    FOREVER				/* compare transformed characters */    	{    	int ans;    	size_t sz;    	if (n1 == 0)    	    n1 = getxfrm (&st1);	/* string 1 */    	if (n2 == 0)    	    n2 = getxfrm (&st2);	/* string 2 */    	sz = (n1 < n2) ? n1 : n2;    	if (sz == 0)	    {    	    if (n1 == n2) 		return (0); 	    if (n2 > 0) 		return (-1);	    return (1);            }    	if ((ans = memcmp (st1.sout, st2.sout, sz)) != 0)    	    return (ans);    	st1.sout += sz;    	st2.sout += sz;    	n1 	 -= sz;    	n2 	 -= sz;    	}    }/* strcpy.c - string copy, 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"/********************************************************************************* strcpy - copy one string to another (ANSI)** This routine copies string <s2> (including EOS) to string <s1>.** INCLUDE FILES: string.h** RETURNS: A pointer to <s1>.*/char * strcpy    (    char *       s1,	/* string to copy to */    const char * s2	/* string to copy from */    )    {    char *save = s1;    while ((*s1++ = *s2++) != EOS)	;    return (save);    }/* strcspn.c - search string for character, 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"/********************************************************************************* strcspn - return the string length up to the first character from a given set (ANSI)** This routine computes the length of the maximum initial segment of string* <s1> that consists entirely of characters not included in string <s2>.** INCLUDE FILES: string.h** RETURNS:* The length of the string segment.** SEE ALSO: strpbrk(), strspn()*/ size_t strcspn       (    const char * s1,	/* string to search */    const char * s2	/* set of characters to look for in <s1> */    )    {    const char *save;    const char *p;    char 	c1;    char 	c2;    for (save = s1 + 1; (c1 = *s1++) != EOS; )	/* search for EOS */	for (p = s2; (c2 = *p++) != EOS; )	/* search for first occurance */	    {	    if (c1 == c2)		return (s1 - save);	      	/* return index of substring */            }    return (s1 - save);    }/* strerror.c - string error, string *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01d,25feb93,jdi  documentation cleanup for 5.1.01c,30nov92,jdi  fixed doc for strerror() - SPR 1825.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"#include "errno.h"#include "symLib.h"#include "limits.h"#include "stdio.h"#include "sysSymTbl.h"#include "private/funcBindP.h"/* forward declarations */LOCAL STATUS strerrorIf (int errcode, char *buf);/********************************************************************************* strerror_r - map an error number to an error string (POSIX)** This routine maps the error number in <errcode> to an error message string.* It stores the error string in <buffer>.** This routine is the POSIX reentrant version of strerror().** INCLUDE FILES: string.h** RETURNS: OK or ERROR.** SEE ALSO: strerror()*/STATUS strerror_r     (    int    errcode,	/* error code */    char * buffer	/* string buffer */    )    {    return (strerrorIf (errcode, buffer));    }/********************************************************************************* strerror - map an error number to an error string (ANSI)** This routine maps the error number in <errcode> to an error message string.* It returns a pointer to a static buffer that holds the error string.** This routine is not reentrant.  For a reentrant version, see strerror_r().** INCLUDE: string.h** RETURNS: A pointer to the buffer that holds the error string.** SEE ALSO: strerror_r()*/char * strerror    (    int errcode		/* error code */    )    {    static char buffer [NAME_MAX];    (void) strerror_r (errcode, buffer);    return (buffer);    }/********************************************************************************* strerrorIf - interface from libc to VxWorks for strerror_r** RETURNS: OK, or ERROR if <buf> is null.* NOMANUAL*/LOCAL STATUS strerrorIf     (    int   errcode,		/* error code */    char *buf			/* string buffer */    )    {    int		value;    SYM_TYPE	type;    char	statName [NAME_MAX];    if (buf == NULL)	return (ERROR);    if (errcode == 0)	{        strcpy (buf, "OK");	return (OK);	}    if ((_func_symFindByValueAndType != (FUNCPTR) NULL) && (statSymTbl != NULL))	{	(* _func_symFindByValueAndType) (statSymTbl, errcode, statName, &value,					 &type, SYM_MASK_NONE, SYM_MASK_NONE);	if (value == errcode)	    {	    strcpy (buf, statName);	    return (OK);	    }	}    sprintf (buf, "errno = %#x", errcode);    return (OK);    }/* strlen.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"/********************************************************************************* strlen - determine the length of a string (ANSI)** This routine returns the number of characters in <s>, not including EOS.** INCLUDE FILES: string.h** RETURNS: The number of non-null characters in the string.*/size_t strlen    (    const char * s        /* string */    )    {    const char *save = s + 1;    while (*s++ != EOS)	;    return (s - save);    }/* strncat.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"/********************************************************************************* strncat - concatenate characters from one string to another (ANSI)** This routine appends up to <n> characters from string <src> to the* end of string <dst>.** INCLUDE FILES: string.h** RETURNS: A pointer to the null-terminated string <s1>.*/char * strncat    (    char *	 dst,  	/* string to append to */    const char * src,   /* string to append */    size_t	 n     	/* max no. of characters to append */    )    {    if (n != 0)	{	char *d = dst;	while (*d++ != EOS)			/* find end of string */	    ;	d--;					/* rewind back of EOS */	while (((*d++ = *src++) != EOS) && (--n > 0))	    ;	if (n == 0)	    *d = EOS;				/* NULL terminate string */	}    return (dst);    }/* strncmp.c - string compare, 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"/********************************************************************************* strncmp - compare the first <n> characters of two strings (ANSI)** This routine compares up to <n> characters of string <s1> to string <s2>* lexicographically.** INCLUDE FILES: string.h** RETURNS:* An integer greater than, equal to, or less than 0, according to whether* <s1> is lexicographically greater than, equal to, or less than <s2>,* respectively.*/int strncmp    (    const char * s1,           	/* string to compare */    const char * s2,           	/* string to compare <s1> to */    size_t       n             	/* max no. of characters to compare */    )    {    if (n == 0)	return (0);    while (*s1++ == *s2++)	{	if ((s1 [-1] == EOS) || (--n == 0))	    return (0);        }    return ((s1 [-1]) - (s2 [-1]));    }/* strncpy.c - string copy, 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"/********************************************************************************* strncpy - copy characters from one string to another (ANSI)** This routine copies <n> characters from string <s2> to string <s1>.* If <n> is greater than the length of <s2>, nulls are added to <s1>.* If <n> is less than or equal to the length of <s2>, the target* string will not be null-terminated.** INCLUDE FILES: string.h** RETURNS: A pointer to <s1>.*/char *strncpy    (    char *      s1,   	/* string to copy to */    const char *s2,   	/* string to copy from */    size_t      n      	/* max no. of characters to copy */    )    {    FAST char *d = s1;    if (n != 0)	{	while ((*d++ = *s2++) != 0)	/* copy <s2>, checking size <n> */	    {	    if (--n == 0)		return (s1);            }	while (--n > 0)	    *d++ = EOS;			/* NULL terminate string */	}    return (s1);    }/* strpbrk.c - string search, string *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品1区2区3区| 色呦呦国产精品| 精品国产免费一区二区三区四区 | 图片区日韩欧美亚洲| 欧美日韩国产综合一区二区 | 色婷婷av一区二区三区gif| 亚洲视频一二三| 91久久线看在观草草青青| 亚洲高清免费观看 | 欧洲一区二区三区在线| 亚洲成精国产精品女| 欧美一区二区视频观看视频| 国模套图日韩精品一区二区| 国产精品美女久久久久久久| 在线看一区二区| 久久国产尿小便嘘嘘| 国产精品你懂的在线| 91日韩一区二区三区| 日韩精品乱码免费| 国产视频一区二区在线| 91亚洲精品久久久蜜桃| 蜜臀久久99精品久久久久久9| 26uuu国产日韩综合| 99久久精品国产一区| 午夜激情综合网| 久久精品人人做人人综合| 欧美最猛性xxxxx直播| 国产美女在线精品| 一区二区欧美国产| 久久网站最新地址| 色激情天天射综合网| 韩国精品久久久| 依依成人综合视频| 久久综合国产精品| 欧美三级欧美一级| 成人国产电影网| 青青草国产成人99久久| 亚洲欧美色综合| 精品99999| 欧美剧在线免费观看网站| 国产.欧美.日韩| 日本午夜精品视频在线观看| 国产精品理论在线观看| 日韩欧美二区三区| 欧美中文字幕一区二区三区亚洲| 国产伦精品一区二区三区免费迷| 亚洲精品免费在线| 国产精品网站在线播放| 91精品国产色综合久久久蜜香臀| 99久久婷婷国产综合精品电影| 久久av老司机精品网站导航| 一区二区三区免费| 中文字幕永久在线不卡| 久久精品一区二区三区不卡| 欧美一区二区三区人| 在线观看视频91| 成人h动漫精品一区二| 国产乱人伦偷精品视频不卡| 日本强好片久久久久久aaa| 亚洲精品五月天| 日韩一区欧美小说| 久久精品人人做人人综合| 欧美刺激午夜性久久久久久久| 欧美综合天天夜夜久久| 欧美综合在线视频| 欧洲精品在线观看| 在线精品视频免费播放| 99re8在线精品视频免费播放| 高清日韩电视剧大全免费| 国模娜娜一区二区三区| 国内精品写真在线观看| 九九在线精品视频| 精品在线亚洲视频| 久久精品国产精品青草| 久久精品国产亚洲一区二区三区| 日韩中文欧美在线| 日韩成人精品在线观看| 日本视频在线一区| 日本vs亚洲vs韩国一区三区| 美女视频网站黄色亚洲| 精品一区二区三区欧美| 国产精品一区免费视频| 成人免费毛片a| 91在线国内视频| 欧美中文字幕一二三区视频| 欧美日韩国产另类一区| 777欧美精品| 日韩欧美一级二级三级久久久| 日韩三级.com| 久久久久综合网| 国产精品电影一区二区三区| 一区二区三区在线播放| 亚洲精品欧美专区| 天天综合网天天综合色| 免费成人你懂的| 国产suv一区二区三区88区| 成人av先锋影音| 欧美在线一二三四区| 日韩精品影音先锋| 国产亚洲va综合人人澡精品| 亚洲欧美区自拍先锋| 日韩综合在线视频| 国产精品一区二区久久不卡| av一区二区三区在线| 欧美日韩中文字幕一区二区| 日韩免费视频一区| 国产精品欧美精品| 日韩精品视频网站| 国产iv一区二区三区| 欧美在线观看视频在线| 久久综合色播五月| 亚洲女厕所小便bbb| 看国产成人h片视频| av日韩在线网站| 日韩精品一区二区三区在线 | 国产精品理论在线观看| 亚洲午夜激情网页| 国产毛片精品一区| 欧美亚州韩日在线看免费版国语版| 91精品国产综合久久香蕉的特点| 久久久久国产精品免费免费搜索| 亚洲视频一区二区免费在线观看| 日本va欧美va欧美va精品| a4yy欧美一区二区三区| 91精品国产一区二区人妖| 自拍偷拍国产亚洲| 另类综合日韩欧美亚洲| 色狠狠综合天天综合综合| 久久久美女毛片| 日韩福利电影在线| 色哟哟国产精品免费观看| 久久亚洲精品国产精品紫薇| 一区二区三区.www| 国产a级毛片一区| 精品日韩在线一区| 午夜精品福利一区二区三区av| 国产精品一区在线| 日韩精品中文字幕在线一区| 亚洲无人区一区| 色综合久久久久久久| 中文字幕国产一区| 久久99蜜桃精品| 91精选在线观看| 亚洲最新在线观看| 99riav一区二区三区| 久久久久久久久久久久久女国产乱 | 成人综合婷婷国产精品久久蜜臀| 欧美浪妇xxxx高跟鞋交| 亚洲欧美另类久久久精品2019| 高清av一区二区| 久久亚洲影视婷婷| 寂寞少妇一区二区三区| 日韩一区二区三区视频在线观看| 亚洲自拍偷拍麻豆| 91麻豆国产精品久久| 国产欧美精品一区aⅴ影院| 激情欧美日韩一区二区| 日韩一区二区在线看| 蜜臀国产一区二区三区在线播放| 91成人免费在线视频| 亚洲欧美日本在线| 色视频成人在线观看免| 亚洲精品视频观看| 欧美亚洲综合网| 亚洲国产精品久久久久婷婷884| 在线观看视频一区二区欧美日韩| 亚洲色图.com| 欧美亚洲综合色| 肉肉av福利一精品导航| 91精品国产福利在线观看| 日本在线不卡视频一二三区| 欧美一级生活片| 国产中文一区二区三区| 久久免费视频一区| 粉嫩高潮美女一区二区三区| 中文一区一区三区高中清不卡| 成人国产精品免费观看视频| 亚洲免费电影在线| 欧美性受极品xxxx喷水| 日精品一区二区| 久久综合九色综合97_久久久| 国产91精品一区二区麻豆网站| 国产精品久99| 欧美日韩中文一区| 美女爽到高潮91| 国产欧美日韩在线| 91色综合久久久久婷婷| 性欧美大战久久久久久久久| 精品国产露脸精彩对白| 国产成人高清视频| 一区二区免费在线播放| 日韩欧美国产系列| 成人黄页在线观看| 亚洲一区二区三区免费视频| 日韩欧美一二区| 99精品国产视频| 日本aⅴ免费视频一区二区三区 | www.色综合.com| 午夜精品aaa| 亚洲国产精品成人久久综合一区|