Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Martin / daiteq-libs

  • 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-libs
  • bsp
  • memcpy.c
  • Roman's avatar
    Add libs bsp,builtins,m,softfloat,testfloat · cab37234
    Signed-off-by: Roman Bartosinski <roman@daiteq.com>
    Roman committed Sep 01, 2020
    cab37234 Browse Files
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;
}