linux下从网卡远程启动

源代码在线查看: string.c

软件大小: 3964 K
上传用户: ytcehui
关键词: linux 网卡 远程
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include	"stddef.h"				#include	"string.h"								/*				 *	Some helper string functions				 */								/*				 *	Same as Posix strrchr				 */				char *strrchr(const char *s, int c)				{					const char *p;									for (p = 0 ; *s != '\0'; s++) {						if (*s == c)							p = s;		/* remember it */					}					return ((char *)p);		/* suppress const loss warning */				}								/*				 *	Same as Posix strcpy				 */				char *strcpy(char *dest, const char *src)				{					char *d = dest;									while ((*d++ = *src++) != '\0')						;					return (dest);				}								/*				 *	Same as Posix strcat				 */				char *strcat(char *dest, const char *src)				{					char *d = dest;									while (*d != '\0')		/* find the end of dest str */						d++;					while ((*d = *src++) != '\0')	/* copy src string to dest str */						d++;					return (dest);				}								char *strncat(char *dest, const char *src, unsigned int maxlen)				{					char *d = dest;									while (*d != '\0')	/* find the end of dest str */						d++;					/* copy src string to dest str, until done or maxlen */					while (((*d = *src++) != '\0') && (maxlen--))						d++;					*d = 0;					return (dest);				}							

相关资源