Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Martin / daiteq-demo

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • daiteq-demo
  • libs
  • bsp
  • memcpy.c
  • Martin's avatar
    daiteq LLVM demos, Release 4 · 3428f119
    Martin committed Oct 11, 2021
    3428f119 Browse File
memcpy.c 217 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12
/* simple replacement of memcpy */
#include <stdlib.h>

void *memcpy(void *dest, const void *src, size_t n)
{
  char *ps = (char*)src;
  char *pd = (char*)dest;
  while (n--) {
    *pd++ = *ps++;
  }
  return dest;
}