string.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * (C) Copyright 2000 - 2002
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * (C) Copyright 2007
  6. * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. */
  10. #ifndef _SPARC_STRING_H_
  11. #define _SPARC_STRING_H_
  12. /*
  13. #define __HAVE_ARCH_STRCPY
  14. #define __HAVE_ARCH_STRNCPY
  15. #define __HAVE_ARCH_STRLEN
  16. #define __HAVE_ARCH_STRCMP
  17. #define __HAVE_ARCH_STRCAT
  18. #define __HAVE_ARCH_MEMSET
  19. #define __HAVE_ARCH_BCOPY
  20. #define __HAVE_ARCH_MEMCPY
  21. #define __HAVE_ARCH_MEMMOVE
  22. #define __HAVE_ARCH_MEMCMP
  23. #define __HAVE_ARCH_MEMCHR
  24. */
  25. extern int strcasecmp(const char *, const char *);
  26. extern int strncasecmp(const char *, const char *, __kernel_size_t);
  27. extern char *strcpy(char *, const char *);
  28. extern char *strncpy(char *, const char *, __kernel_size_t);
  29. extern __kernel_size_t strlen(const char *);
  30. extern int strcmp(const char *, const char *);
  31. extern char *strcat(char *, const char *);
  32. extern void *memset(void *, int, __kernel_size_t);
  33. extern void *memcpy(void *, const void *, __kernel_size_t);
  34. extern void *memmove(void *, const void *, __kernel_size_t);
  35. extern int memcmp(const void *, const void *, __kernel_size_t);
  36. extern void *memchr(const void *, int, __kernel_size_t);
  37. #endif