char version[CALCEPH_MAX_CONSTANTVALUE];
t_calcephbin *peph;

/* open the ephemeris file */
peph = calceph_open("example1.dat");
if (peph)
{
  if (calceph_getfileversion(peph, version))
    printf("The version of the file is %s\n", version);

  /* close the ephemeris file */
  calceph_close(peph);
}