ft_memalloc

This commit is contained in:
Tanguy MAZE
2018-04-06 18:20:30 +02:00
parent 0e0abea7f0
commit ec7b2d2ff5
4 changed files with 54 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/05 15:22:55 by tmaze #+# #+# */
/* Updated: 2018/04/06 10:51:34 by tmaze ### ########.fr */
/* Updated: 2018/04/06 18:20:06 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -18,6 +18,6 @@ void *ft_memset(void *b, int c, size_t len)
i = 0;
while (i < len)
*((char*)b + i++) = c;
((char*)b)[i++] = c;
return (b);
}