string.c 496 B

12345678910111213141516171819202122232425
  1. /*
  2. * Simple string functions.
  3. *
  4. * Copyright (C) 2014 Red Hat Inc.
  5. *
  6. * Author:
  7. * Vivek Goyal <vgoyal@redhat.com>
  8. *
  9. * This source code is licensed under the GNU General Public License,
  10. * Version 2. See the file COPYING for more details.
  11. */
  12. #include <linux/types.h>
  13. #include "../boot/string.c"
  14. void *memcpy(void *dst, const void *src, size_t len)
  15. {
  16. return __builtin_memcpy(dst, src, len);
  17. }
  18. void *memset(void *dst, int c, size_t len)
  19. {
  20. return __builtin_memset(dst, c, len);
  21. }