1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2024-11-14 00:25:58 -05:00
stm32bringup/memcpy.c

16 lines
280 B
C

/* 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 */