string.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  4. *
  5. * vineetg: May 2011
  6. * -We had half-optimised memset/memcpy, got better versions of those
  7. * -Added memcmp, strchr, strcpy, strcmp, strlen
  8. *
  9. * Amit Bhor: Codito Technologies 2004
  10. */
  11. #ifndef _ASM_ARC_STRING_H
  12. #define _ASM_ARC_STRING_H
  13. #include <linux/types.h>
  14. #define __HAVE_ARCH_MEMSET
  15. #define __HAVE_ARCH_MEMCPY
  16. #define __HAVE_ARCH_MEMCMP
  17. #define __HAVE_ARCH_STRCHR
  18. #define __HAVE_ARCH_STRCPY
  19. #define __HAVE_ARCH_STRCMP
  20. #define __HAVE_ARCH_STRLEN
  21. extern void *memset(void *ptr, int, __kernel_size_t);
  22. extern void *memcpy(void *, const void *, __kernel_size_t);
  23. extern void memzero(void *ptr, __kernel_size_t n);
  24. extern int memcmp(const void *, const void *, __kernel_size_t);
  25. extern char *strchr(const char *s, int c);
  26. extern char *strcpy(char *dest, const char *src);
  27. extern int strcmp(const char *cs, const char *ct);
  28. extern __kernel_size_t strlen(const char *);
  29. #endif /* _ASM_ARC_STRING_H */