ft_strncpy - kibotrel/42-Libft GitHub Wiki

char	*ft_strncpy(char *dst, const char *src, size_t len)

Description :

Copies the n first characters of string src into the string dst.

Return Value :

Returns the string dst where n characters of src were copied followed by a \0.

Source code