-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strncpy.c
20 lines (18 loc) · 1.02 KB
/
ft_strncpy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strncpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mesafi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/31 17:11:39 by mesafi #+# #+# */
/* Updated: 2020/01/20 13:31:29 by mesafi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strncpy(char *dst, const char *src, size_t len)
{
ft_bzero(dst, len);
ft_memccpy(dst, src, '\0', len);
return (dst);
}