/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memset.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/03 14:57:36 by jhalford #+# #+# */ /* Updated: 2017/03/06 15:39:24 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void *ft_memset(void *b, int c, size_t len) { size_t i; i = -1; while (++i < len) ((unsigned char *)b)[i] = (unsigned char)c; return (b); }