added finished algorithm
merged algorithm from other personnal repo
This commit is contained in:
22
libft/srcs/ft_strcat.c
Normal file
22
libft/srcs/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 *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