libft
Loading...
Searching...
No Matches
ft_strlcpy.c File Reference
#include "libft.h"

Go to the source code of this file.

Functions

size_t ft_strlcpy (char *dst, const char *src, size_t dstsize)
 Copies string to destination.
 

Function Documentation

◆ ft_strlcpy()

size_t ft_strlcpy ( char *  dst,
const char *  src,
size_t  dstsize 
)

Copies string to destination.

Copies string to destination and makes sure it's null terminated.

Parameters
dstString
srcString
dstsizeSize of the destination
Returns
size_t Lenght of the source

Definition at line 15 of file ft_strlcpy.c.