TA的每日心情 | 开心 4 小时前 |
---|
签到天数: 223 天 [LV.7]常住居民III
荣誉版主
- 积分
- 4851
|
楼主 |
发表于 2024-3-8 16:14:23
|
显示全部楼层
所含函数文件例表, 除 strtok 函数之外, 其他函数都是可重入的 !
#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); // (char *R0R4R5, char *R1R2R3)
extern char strncmp (char *s1, char *s2, int n);
extern char *strcpy (char *s1, char *s2); // (char *R0R4R5, char *R1R2R3); *s2-->*s1
extern char *strncpy (char *s1, char *s2, int n);
extern int strlen (char *);
extern char *strchr (const char *s, char c); // (const char *R1R2R3, char R5)
extern int strpos (const char *s, char c); // (const char *R1R2R3, char R5)
extern char *strrchr (const char *s, char c); // (const char *R1R2R3, char R5)
extern int strrpos (const char *s, char c); // (const char *R1R2R3, char R5)
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 *strtok_s (char *str, const char *set, char **str_p); // 新增
extern char memcmp (void *s1, void *s2, int n); // (void *R0R4R5, void *R1R2R3, int R6R7)
extern void *memcpy (void *s1, void *s2, int n); // (void *R0R4R5, void *R1R2R3, int R6R7); *s2-->*s1
extern void *memchr (void *s, char val, int n); // (void *R1R2R3, char R5, int R6R7)
extern void *memccpy (void *s1, void *s2, char val, int n); // *s2-->*s1
extern void *memmove (void *s1, void *s2, int n); // (void *R0R4R5, void *R1R2R3, int R6R7); *s2-->*s1
extern void *memset (void *s, char val, int n); // (void *R1R2R3, char R5, int R6R7)
#pragma RESTORE
|
|