maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_memcpy.c File Reference
#include "libft.h"
Include dependency graph for ft_memcpy.c:

Go to the source code of this file.

Functions

void * ft_memcpy (void *dest, const void *src, size_t n)
 

Function Documentation

◆ ft_memcpy()

void * ft_memcpy ( void *  dest,
const void *  src,
size_t  n 
)

Definition at line 22 of file ft_memcpy.c.

23{
24 char *d;
25 const char *s;
26
27 if (!dest && !src)
28 return (NULL);
29 s = src;
30 d = dest;
31 while (n--)
32 *d++ = *s++;
33 return (dest);
34}

Referenced by ft_memmove(), and strndup().

Here is the caller graph for this function: