/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memset.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/04/05 15:22:55 by tmaze #+# #+# */ /* Updated: 2018/04/06 10:51:34 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void *ft_memset(void *b, int c, size_t len) { size_t i; i = 0; while (i < len) *((char*)b + i++) = c; return (b); }