This function writes a comment to the SPK file associated to the ephemeris descriptor eph. The comment is a null-terminated string of characters pointed to by comment. This function cannot be called after writing a segment to the SPK file (i.e. after calling any of the writeph_spkN_seq_write or writeph_spkN_par_reserve functions), otherwise it will fail.

The following example adds a comment to the new ephemeris file ephemeris.bsp

t_writephbin *weph;

weph = writeph_spk_create("ephemeris.bsp","asteroid_1");
if (weph)
{
  writeph_comment(weph, "Created by ...\nDate : ....\n");

  /* ... compute and write to weph ...
  */
  writeph_close(weph);
}