/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_bzero.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rishimot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/07/06 09:49:30 by rishimot #+# #+# */ /* Updated: 2020/07/10 22:43:08 by rishimot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_bzero(void *s, size_t n) { size_t i; char *p; i = 0; p = (char *)s; while (i < n) { p[i] = '\0'; i++; } }