string.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * vineetg: May 2011
  9. * -We had half-optimised memset/memcpy, got better versions of those
  10. * -Added memcmp, strchr, strcpy, strcmp, strlen
  11. *
  12. * Amit Bhor: Codito Technologies 2004
  13. */
  14. #ifndef _ASM_ARC_STRING_H
  15. #define _ASM_ARC_STRING_H
  16. #include <linux/types.h>
  17. #define __HAVE_ARCH_MEMSET
  18. #define __HAVE_ARCH_MEMCPY
  19. #define __HAVE_ARCH_MEMCMP
  20. #define __HAVE_ARCH_STRCHR
  21. #define __HAVE_ARCH_STRCPY
  22. #define __HAVE_ARCH_STRCMP
  23. #define __HAVE_ARCH_STRLEN
  24. extern void *memset(void *ptr, int, __kernel_size_t);
  25. extern void *memcpy(void *, const void *, __kernel_size_t);
  26. extern void memzero(void *ptr, __kernel_size_t n);
  27. extern int memcmp(const void *, const void *, __kernel_size_t);
  28. extern char *strchr(const char *s, int c);
  29. extern char *strcpy(char *dest, const char *src);
  30. extern int strcmp(const char *cs, const char *ct);
  31. extern __kernel_size_t strlen(const char *);
  32. #endif /* _ASM_ARC_STRING_H */