tgrekov-libft
HIVE libft Oct 2023
Loading...
Searching...
No Matches
ft_memmove.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memmove.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/23 15:24:02 by tgrekov #+# #+# */
/* Updated: 2023/11/04 22:47:05 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_memmove.c.

#include "libft.h"
Include dependency graph for ft_memmove.c:

Go to the source code of this file.

Functions

void * ft_memmove (void *dst, const void *src, size_t len)
 Copies len bytes from byte string src to byte string dst non-destructively.
 

Function Documentation

◆ ft_memmove()

void * ft_memmove ( void *  dst,
const void *  src,
size_t  len 
)

Copies len bytes from byte string src to byte string dst non-destructively.

src and dst may overlap in any manner, the function will switch copy directions to ensure the data is copied non-destructively.

Parameters
[in]dstPointer to destination byte string
[in]srcPointer to source byte string
[in]lenNumber of bytes to copy
Return values
void*dst

Definition at line 34 of file ft_memmove.c.