ft_memalloc
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user