string.h_
来自「读RF卡的源代码」· H_ 代码 · 共 61 行
H_
61 行
/*--------------------------------------------------------------------------
STRING.H
String functions for ARM CA Version 1.
Copyright (c) 1995-2004 Keil Elektronik GmbH and Keil Software, Inc.
All rights reserved.
--------------------------------------------------------------------------*/
#ifndef __STRING_H__
#define __STRING_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __SIZE_T__
#define __SIZE_T__
typedef unsigned int size_t;
#endif
#ifndef NULL
#define NULL ((void *) 0L)
#endif
extern unsigned char *strcat (unsigned char *s1, const unsigned char *s2);
extern unsigned char *strncat (unsigned char *s1, const unsigned char *s2, unsigned int n);
extern int strcmp (const unsigned char *s1, const unsigned char *s2);
extern int strncmp (const unsigned char *s1, const unsigned char *s2, unsigned int n);
extern unsigned char *strcpy (unsigned char *s1, const unsigned char *s2);
extern unsigned char *strncpy (unsigned char *s1, const unsigned char *s2, unsigned int n);
extern unsigned int strlen (const char *s);
extern unsigned char *strchr (const unsigned char *s, char c);
extern unsigned int strpos (const unsigned char *s, char c);
extern unsigned char *strrchr (const unsigned char *s, char c);
extern unsigned int strrpos (const unsigned char *s, char c);
extern int strspn (const unsigned char *s, const unsigned char *set);
extern int strcspn (const unsigned char *s, const unsigned char *set);
extern unsigned char *strpbrk (const unsigned char *s, const unsigned char *set);
extern unsigned char *strrpbrk (const unsigned char *s, const unsigned char *set);
extern unsigned char *strstr (const unsigned char *s, const unsigned char *sub);
extern int memcmp (const void *s1, const void *s2, unsigned int n);
extern void *memcpy (void *s1, const void *s2, unsigned int n);
extern void *memchr (void *s, unsigned char val, unsigned int n);
extern void *memccpy (void *s1, const void *s2, char val, unsigned int n);
extern void *memmove (void *s1, const void *s2, unsigned int n);
extern void *memset (void *s, unsigned char val, unsigned int n);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?