string.c 490 B

1234567891011121314151617181920212223
  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. #define __IN_STRING_C
  7. #include <linux/module.h>
  8. #include <linux/string.h>
  9. char *strcpy(char *dest, const char *src)
  10. {
  11. return __kernel_strcpy(dest, src);
  12. }
  13. EXPORT_SYMBOL(strcpy);
  14. char *strcat(char *dest, const char *src)
  15. {
  16. return __kernel_strcpy(dest + __kernel_strlen(dest), src);
  17. }
  18. EXPORT_SYMBOL(strcat);