-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strcpy.c
More file actions
28 lines (25 loc) · 1.05 KB
/
Copy pathft_strcpy.c
File metadata and controls
28 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmasarov <mmasarov@student.42vienna.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/01 11:19:06 by mmasarov #+# #+# */
/* Updated: 2024/07/01 11:19:08 by mmasarov ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcpy(char *dest, const char *src)
{
char *saved;
saved = dest;
while (*src)
{
*dest = *src;
dest++;
src++;
}
*dest = 0;
return (saved);
}