# include "addstar.h"

int dump_rawstars (Stars *stars, int Nstars) {

  int i;
  FILE *f;

  f = fopen ("stars.dat", "w");

  for (i = 0; i < Nstars; i++) {
    fprintf (f, "%4d  %10.6f %10.6f  %8.2f %8.2f  %7.2f %7.2f\n", 
	     i, 
	     stars[i].R, stars[i].D,
	     stars[i].X, stars[i].Y,
	     stars[i].M, stars[i].dM);
  }

  fclose (f);
  exit (1);
}

