title: Do you have a simple bzero example?
body: <p>I need to implement <code>bzero</code>, I've read the manual, I saw a lot of posts about it on StackOverflow, but what I'm asking for is a simple example where you use bzero, I didn't find any simple example of using <code>bzero</code> instead of using it in server/client in C.</p>
  
  <p>Ok so this is my memset:</p>
  
  <pre><code>void *my_memset(void *b, int c, size_t len)
  {
      char *pb;
      unsigned char car;
  
      if (b == NULL)
          return (NULL);
      pb = b;
      car = (unsigned char)c;
      while (len--)
      {
          *pb++ = car;
      }
      return (b);
  }
  
  void ft_bzero(void *s, size_t  n)
  {
       ft_memset(s, 0, n);
  }
  </code></pre>
  
  <p>Looks fine?</p>