Keil正式中文版.rar

源代码在线查看: string.h

软件大小: 10528 K
上传用户: jatckimo
关键词: Keil
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*--------------------------------------------------------------------------
				STRING.H
				
				String functions.
				Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
				All rights reserved.
				--------------------------------------------------------------------------*/
				
				#ifndef _SIZE_T
				 #define _SIZE_T
				 typedef unsigned int size_t;
				#endif
				
				#ifndef NULL
				 #define NULL ((void *) 0L)
				#endif
				
				#pragma SAVE
				#pragma REGPARMS
				extern char *strcat (char *s1, char *s2);
				extern char *strncat (char *s1, char *s2, int n);
				
				extern char strcmp (char *s1, char *s2);
				extern char strncmp (char *s1, char *s2, int n);
				
				extern char *strcpy (char *s1, char *s2);
				extern char *strncpy (char *s1, char *s2, int n);
				
				extern int strlen (char *);
				
				extern char *strchr (const char *s, char c);
				extern int strpos (const char *s, char c);
				extern char *strrchr (const char *s, char c);
				extern int strrpos (const char *s, char c);
				
				extern int strspn (char *s, char *set);
				extern int strcspn (char *s, char *set);
				extern char *strpbrk (char *s, char *set);
				extern char *strrpbrk (char *s, char *set);
				extern char *strstr  (char *s, char *sub);
				extern char *strtok  (char *str, const char *set);
				
				extern char memcmp (void *s1, void *s2, int n);
				extern void *memcpy (void *s1, void *s2, int n);
				extern void *memchr (void *s, char val, int n);
				extern void *memccpy (void *s1, void *s2, char val, int n);
				extern void *memmove (void *s1, void *s2, int n);
				extern void *memset  (void *s, char val, int n);
				#pragma RESTORE
							

相关资源