Started from buttom go to the sky

This commit is contained in:
Raphaël 2024-04-28 19:59:01 +02:00
parent 96215449bd
commit f811e55dea
4781 changed files with 10121 additions and 1743 deletions

32
stdme/src/mem/mem_copy.c Normal file
View file

@ -0,0 +1,32 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mem_copy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 11:16:02 by maiboyer #+# #+# */
/* Updated: 2023/12/09 15:01:08 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#include "me/mem/mem_copy.h"
void *mem_copy(void *destination, const void *source, t_usize count)
{
t_usize i;
t_u8 *dst;
t_u8 *src;
i = 0;
dst = (t_u8 *)destination;
src = (t_u8 *)source;
if (dst == src)
return (destination);
while (i < count)
{
dst[i] = src[i];
i++;
}
return (destination);
}