mirror of
https://github.com/rfivet/stm32bringup.git
synced 2024-12-18 06:46:23 -05:00
16 lines
280 B
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 */
|