string.h 1.1 KB

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