/* 'mxml_fd_putc()' - Write a character to a file descriptor.  */
static int mxml_fd_putc(int ch, void *p)
/* 'mxml_fd_putc()' - Write a character to a file descriptor.  */
static int mxml_fd_putc(int ch, void *p)
{
  _mxml_fdbuf_t	*buf;
  buf = (_mxml_fdbuf_t *)p;
  if (buf->current >= buf->end)
    if (mxml_fd_write(buf) < 0)
      return (-1);
  *(buf->current)++ = ch;
  return (0);
}