tgrekov-push_swap
HIVE push_swap July 2024
|
Definition in file ft_memcpy.c.
#include "libft.h"
Go to the source code of this file.
Functions | |
void * | ft_memcpy (void *dst, const void *src, size_t n) |
Copies n bytes from byte string src to byte string dst . | |
void * ft_memcpy | ( | void * | dst, |
const void * | src, | ||
size_t | n | ||
) |
Copies n
bytes from byte string src
to byte string dst
.
Copy is always performed from end to start.
If your dst
starts at any point after your src
, even if they overlap, this function is safe.
If your dst
starts prior to your src
and overlaps it, or there is a possibility of this happening, use ft_memmove.
[in] | dst | Pointer to destination byte string |
[in] | src | Pointer to source byte string |
[in] | n | Number of bytes to copy |
void* | dst |
Definition at line 36 of file ft_memcpy.c.