ft_strcat, ft_strncat
This commit is contained in:
22
ft_strcat.c
Normal file
22
ft_strcat.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_strcat.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/04 17:56:56 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/04 18:21:46 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
char *ft_strcat(char *restrict dest, const char *src)
|
||||
{
|
||||
int dest_len;
|
||||
|
||||
dest_len = ft_strlen(dest);
|
||||
ft_strcpy(&dest[dest_len], src);
|
||||
return (dest);
|
||||
}
|
Reference in New Issue
Block a user