string.h 824 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_ARC_STRING_H
  7. #define __ASM_ARC_STRING_H
  8. #define __HAVE_ARCH_MEMSET
  9. #define __HAVE_ARCH_MEMCPY
  10. #define __HAVE_ARCH_MEMCMP
  11. #define __HAVE_ARCH_STRCHR
  12. #define __HAVE_ARCH_STRCPY
  13. #define __HAVE_ARCH_STRCMP
  14. #define __HAVE_ARCH_STRLEN
  15. extern void *memset(void *ptr, int, __kernel_size_t);
  16. extern void *memcpy(void *, const void *, __kernel_size_t);
  17. extern void memzero(void *ptr, __kernel_size_t n);
  18. extern int memcmp(const void *, const void *, __kernel_size_t);
  19. extern char *strchr(const char *s, int c);
  20. extern char *strcpy(char *dest, const char *src);
  21. extern int strcmp(const char *cs, const char *ct);
  22. extern __kernel_size_t strlen(const char *);
  23. #endif /* __ASM_ARC_STRING_H */