ft_bzero.c 122 B

1234567891011121314
  1. #include "libft.h"
  2. void ft_bzero(void *s, size_t n)
  3. {
  4. char *str;
  5. str = s;
  6. while (n > 0)
  7. {
  8. *str++ = 0;
  9. n--;
  10. }
  11. }