ft_bzero, norming ft_memset

This commit is contained in:
Tanguy MAZE
2018-04-06 10:54:02 +02:00
parent ca233d4b2f
commit cae2c29bc8
3 changed files with 25 additions and 6 deletions

View File

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