/* 'write_file()' - Copy a file to the output.  */
static void write_file(FILE *out, const char *file)
/* 'write_file()' - Copy a file to the output.  */
static void write_file(FILE *out, const char *file)
{
  FILE		*fp;
  char		line[8192];
  if ((fp = fopen(file, "r")) == NULL)
  {
    fprintf(stderr, "mxmldoc: Unable to open \"%s\": %s\n", file,
            strerror(errno));
    return;
  }
  while (fgets(line, sizeof(line), fp))
    fputs(line, out);
  fclose(fp);
}