42-archive/nm-otool/libft/srcs/str/ft_strchrcpy.c
2017-10-07 18:24:39 +02:00

21 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strchrcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariard <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/01 15:43:59 by ariard #+# #+# */
/* Updated: 2017/03/07 11:08:55 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strchrcpy(char *dst, const char *src, char c)
{
while (*src && *src != c)
*dst++ = *src++;
*dst = '\0';
return (dst);
}