mirror of
https://github.com/rfivet/stm32bringup.git
synced 2024-12-21 16:26:35 -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 */
|