string.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (c) 1994, 95, 96, 97, 98, 2000, 01 Ralf Baechle
  7. * Copyright (c) 2000 by Silicon Graphics, Inc.
  8. * Copyright (c) 2001 MIPS Technologies, Inc.
  9. */
  10. #ifndef _ASM_STRING_H
  11. #define _ASM_STRING_H
  12. /*
  13. * We don't do inline string functions, since the
  14. * optimised inline asm versions are not small.
  15. */
  16. #undef __HAVE_ARCH_STRCPY
  17. extern char *strcpy(char *__dest, __const__ char *__src);
  18. #undef __HAVE_ARCH_STRNCPY
  19. extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
  20. #undef __HAVE_ARCH_STRCMP
  21. extern int strcmp(__const__ char *__cs, __const__ char *__ct);
  22. #undef __HAVE_ARCH_STRNCMP
  23. extern int strncmp(__const__ char *__cs, __const__ char *__ct, __kernel_size_t __count);
  24. #undef __HAVE_ARCH_MEMSET
  25. extern void *memset(void *__s, int __c, __kernel_size_t __count);
  26. #undef __HAVE_ARCH_MEMCPY
  27. extern void *memcpy(void *__to, __const__ void *__from, __kernel_size_t __n);
  28. #undef __HAVE_ARCH_MEMMOVE
  29. extern void *memmove(void *__dest, __const__ void *__src, __kernel_size_t __n);
  30. #endif /* _ASM_STRING_H */