ft_strchr, norming ft_strcpy, ft_strncat, ft_strncpy

This commit is contained in:
Tanguy MAZE
2018-04-04 19:22:29 +02:00
parent 727ec54307
commit 698a37b399
5 changed files with 31 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/04 18:29:06 by tmaze #+# #+# */
/* Updated: 2018/04/04 18:34:17 by tmaze ### ########.fr */
/* Updated: 2018/04/04 19:20:04 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,7 +15,7 @@
char *ft_strncat(char *restrict dest, const char *src, size_t n)
{
int dest_len;
dest_len = ft_strlen(dest);
ft_strncpy(&dest[dest_len], src, n);
return (dest);