Skip to content

Commit 7f2844a

Browse files
committedMay 25, 2023
Provide correct argument to function
1 parent facf1c2 commit 7f2844a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ft_memcpy.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: ibeliaie <ibeliaie@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2023/05/16 15:02:12 by ibeliaie #+# #+# */
9-
/* Updated: 2023/05/23 13:42:23 by ibeliaie ### ########.fr */
9+
/* Updated: 2023/05/24 20:45:45 by ibeliaie ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -37,6 +37,6 @@ void *ft_memcpy(void *dst, const void *src, size_t len)
3737
// char str2[] = "bonjour";
3838
// char str1[20];
3939
// size_t len = 7;
40-
// ft_memcpy(str1, str2, len);
40+
// ft_memcpy(str1, str2, len * sizeof(char));
4141
// printf("Copied string is: %s\n", str2);
4242
// }

0 commit comments

Comments
 (0)