Rev 8793 | Rev 9810 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8687 | turbocat | 1 | #ifndef _STRING_H_ |
2 | #define _STRING_H_ |
||
3 | |||
4 | #include |
||
5 | |||
9766 | turbocat | 6 | extern void* _FUNC(memccpy)(void* restrict dest, const void* restrict src, int c, size_t n); |
8687 | turbocat | 7 | |
8718 | turbocat | 8 | #ifdef __TINYC__ |
9 | extern void* memcpy(void* s1, const void* s2, size_t n); |
||
10 | extern void* memset(void* s, int c, size_t n); |
||
8687 | turbocat | 11 | extern void* memmove(void* s1, const void* s2, size_t n); |
8718 | turbocat | 12 | #else |
13 | extern void* _FUNC(memcpy)(void* s1, const void* s2, size_t n); |
||
14 | extern void* _FUNC(memset)(void* s, int c, size_t n); |
||
15 | extern void* _FUNC(memmove)(void* s1, const void* s2, size_t n); |
||
16 | #endif |
||
8687 | turbocat | 17 | |
9766 | turbocat | 18 | extern char* _FUNC(strcpy)(char* s1, const char* s2); |
8687 | turbocat | 19 | extern char* _FUNC(strncpy)(char* s1, const char* s2, size_t n); |
20 | extern char* _FUNC(strcat)(char* s1, const char* s2); |
||
21 | extern char* _FUNC(strncat)(char* s1, const char* s2, size_t n); |
||
9766 | turbocat | 22 | extern int _FUNC(memcmp)(const void* s1, const void* s2, size_t n); |
23 | extern int _FUNC(strcmp)(const char* s1, const char* s2); |
||
8687 | turbocat | 24 | extern int _FUNC(strcoll)(const char* s1, const char* s2); |
25 | extern int _FUNC(strncmp)(const char* s1, const char* s2, size_t n); |
||
26 | extern size_t _FUNC(strxfrm)(char* s1, const char* s2, size_t n); |
||
27 | extern void* _FUNC(memchr)(const void* s, int c, size_t n); |
||
28 | extern char* _FUNC(strchr)(const char* s, int c); |
||
29 | extern size_t _FUNC(strcspn)(const char* s1, const char* s2); |
||
30 | extern char* _FUNC(strpbrk)(const char* s1, const char* s2); |
||
9766 | turbocat | 31 | extern char* _FUNC(strrchr)(const char* s, int c); |
32 | extern size_t _FUNC(strspn)(const char* s1, const char* s2); |
||
33 | extern char* _FUNC(strstr)(const char* s1, const char* s2); |
||
8687 | turbocat | 34 | extern char* _FUNC(strtok)(char* s1, const char* s2); |
9766 | turbocat | 35 | extern char* _FUNC(strerror)(int errnum); |
36 | extern size_t _FUNC(strlen)(const char* s); |
||
37 | extern char* _FUNC(strrev)(char* str); |
||
38 | extern char* _FUNC(strdup)(const char* str); |
||
8687 | turbocat | 39 | |
40 | #endif |