string.h 847 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __ASM_I386_STRING_H
  2. #define __ASM_I386_STRING_H
  3. /*
  4. * We don't do inline string functions, since the
  5. * optimised inline asm versions are not small.
  6. */
  7. #undef __HAVE_ARCH_STRNCPY
  8. extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
  9. #undef __HAVE_ARCH_STRRCHR
  10. extern char * strrchr(const char * s, int c);
  11. #undef __HAVE_ARCH_STRCHR
  12. extern char * strchr(const char * s, int c);
  13. #define __HAVE_ARCH_MEMCPY
  14. extern void * memcpy(void *, const void *, __kernel_size_t);
  15. #define __HAVE_ARCH_MEMMOVE
  16. extern void * memmove(void *, const void *, __kernel_size_t);
  17. #undef __HAVE_ARCH_MEMCHR
  18. extern void * memchr(const void *, int, __kernel_size_t);
  19. #define __HAVE_ARCH_MEMSET
  20. extern void * memset(void *, int, __kernel_size_t);
  21. #undef __HAVE_ARCH_MEMZERO
  22. extern void memzero(void *ptr, __kernel_size_t n);
  23. #endif