rename s1 to dest

This commit is contained in:
Timo Schmidt 2023-04-01 20:37:23 +02:00
parent efb473c524
commit 3e67f30a8b
1 changed files with 8 additions and 8 deletions

View File

@ -6,19 +6,19 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */ /* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/19 05:59:56 by tischmid #+# #+# */ /* Created: 2023/03/19 05:59:56 by tischmid #+# #+# */
/* Updated: 2023/03/29 01:06:57 by tischmid ### ########.fr */ /* Updated: 2023/04/01 20:37:11 by tischmid ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
char *ft_strcpy(char *s1, char *s2) char *ft_strcpy(char *dest, char *src)
{ {
char *o_s1; char *o_dest;
o_s1 = s1; o_dest = dest;
while (*s2) while (*src)
*s1++ = *s2++; *dest++ = *src++;
*s1 = 0; *dest = 0;
return (o_s1); return (o_dest);
} }
/* //// /* ////