feat: initial version
This commit is contained in:
parent
5cad2db883
commit
6428ed06b0
16 changed files with 263 additions and 0 deletions
12
srcs/ft_memcpy.c
Normal file
12
srcs/ft_memcpy.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include <stddef.h>
|
||||
|
||||
void *ft_memcpy(void *dst, const void *src, size_t n) {
|
||||
unsigned char *d = (unsigned char *)dst;
|
||||
const unsigned char *s = (const unsigned char *)src;
|
||||
|
||||
while (n--) {
|
||||
*d++ = *s++;
|
||||
}
|
||||
|
||||
return dst;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue