diff --git a/ex00/ft_strcpy.c b/ex00/ft_strcpy.c index ee9a644..798cfc8 100644 --- a/ex00/ft_strcpy.c +++ b/ex00/ft_strcpy.c @@ -6,16 +6,19 @@ /* By: tischmid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/03/19 05:59:56 by tischmid #+# #+# */ -/* Updated: 2023/03/26 00:53:19 by tischmid ### ########.fr */ +/* Updated: 2023/03/27 20:56:31 by tischmid ### ########.fr */ /* */ /* ************************************************************************** */ char *ft_strcpy(char *s1, char *s2) { + char *o_s1; + + o_s1 = s1; while (*s2) *s1++ = *s2++; *s1 = 0; - return (s1); + return (o_s1); } /* ////