Subversion Repositories Kolibri OS

Rev

Rev 8793 | Rev 9810 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _STRING_H_
  2. #define _STRING_H_
  3.  
  4. #include <stddef.h>
  5.  
  6. extern void* _FUNC(memccpy)(void* restrict dest, const void* restrict src, int c, size_t n);
  7.  
  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);
  11. extern void* memmove(void* s1, const void* s2, size_t n);
  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
  17.  
  18. extern char* _FUNC(strcpy)(char* s1, const char* s2);
  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);
  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);
  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);
  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);
  34. extern char* _FUNC(strtok)(char* s1, const char* s2);
  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);
  39.  
  40. #endif
  41.