Corrección test ft_memcpy()
This commit is contained in:
parent
d0f019dbc0
commit
41ed119416
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
|
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/10/03 18:27:44 by lalgarra #+# #+# */
|
/* Created: 2025/10/03 18:27:44 by lalgarra #+# #+# */
|
||||||
/* Updated: 2025/10/04 19:06:34 by lalgarra ### ########.fr */
|
/* Updated: 2025/10/04 19:09:27 by lalgarra ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -19,7 +19,7 @@ void do_test1(char *dest, char *src, size_t n)
|
||||||
void *res;
|
void *res;
|
||||||
|
|
||||||
printf("src: \"%s\", n=%lu, dest: \"%s\";", src, n, dest);
|
printf("src: \"%s\", n=%lu, dest: \"%s\";", src, n, dest);
|
||||||
res = memcpy(dest, src, n);
|
res = ft_memcpy(dest, src, n);
|
||||||
printf(" after call, dest: \"%s\";", dest);
|
printf(" after call, dest: \"%s\";", dest);
|
||||||
printf(" (res == dest): %i\n", res == (void *)dest);
|
printf(" (res == dest): %i\n", res == (void *)dest);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue