ft_bzero.c 1.0 KB

123456789101112131415161718192021222324
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_bzero.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/08 15:24:30 by mazimi #+# #+# */
  9. /* Updated: 2014/12/02 15:54:20 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. void ft_bzero(void *s, size_t n)
  14. {
  15. char *tmp;
  16. size_t i;
  17. i = -1;
  18. tmp = s;
  19. while (++i < n)
  20. tmp[i] = 0;
  21. }