1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2024-12-21 16:26:35 -05:00
stm32bringup/memcpy.c

16 lines
280 B
C
Raw Normal View History

/* memcpy.c -- copy memory area */
/* Copyright (c) 2021 Renaud Fivet */
#include <string.h>
void *memcpy( void *to, const void *from, size_t n) {
const char *s = from ;
char *d = to ;
while( n--)
*d++ = *s++ ;
return to ;
}
/* end of memcpy.c */