string.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 1994, 95, 96, 97, 98, 2000, 01 Ralf Baechle
  3. * Copyright (c) 2000 by Silicon Graphics, Inc.
  4. * Copyright (c) 2001 MIPS Technologies, Inc.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0
  7. */
  8. #ifndef _ASM_STRING_H
  9. #define _ASM_STRING_H
  10. /*
  11. * We don't do inline string functions, since the
  12. * optimised inline asm versions are not small.
  13. */
  14. #undef __HAVE_ARCH_STRCPY
  15. extern char *strcpy(char *__dest, __const__ char *__src);
  16. #undef __HAVE_ARCH_STRNCPY
  17. extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
  18. #undef __HAVE_ARCH_STRCMP
  19. extern int strcmp(__const__ char *__cs, __const__ char *__ct);
  20. #undef __HAVE_ARCH_STRNCMP
  21. extern int strncmp(__const__ char *__cs, __const__ char *__ct, __kernel_size_t __count);
  22. #undef __HAVE_ARCH_MEMSET
  23. extern void *memset(void *__s, int __c, __kernel_size_t __count);
  24. #undef __HAVE_ARCH_MEMCPY
  25. extern void *memcpy(void *__to, __const__ void *__from, __kernel_size_t __n);
  26. #undef __HAVE_ARCH_MEMMOVE
  27. extern void *memmove(void *__dest, __const__ void *__src, __kernel_size_t __n);
  28. #endif /* _ASM_STRING_H */