/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memset.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gtertysh +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/28 12:06:20 by gtertysh #+# #+# */ /* Updated: 2016/11/28 16:47:35 by gtertysh ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void *ft_memset(void *b, int c, size_t len) { if (b) while (len--) *(unsigned char *)b++ = (unsigned char)c; return (b); }