/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* pf_memset.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/02/11 09:57:23 by tmaze #+# #+# */ /* Updated: 2019/02/11 09:59:01 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "libftprintf.h" void *pf_memset(void *b, int c, size_t len) { size_t i; i = 0; while (i < len) ((char*)b)[i++] = c; return (b); }