     First open the SPK file and get a handle for it. 
      ./
      <a href="spkopa_c.html">spkopa_c</a> ( spknam, &amp;handle ); 

      /.
      Create a segment identifier. 
      ./
      segid = &quot;MY_SAMPLE_SPK_TYPE_2_SEGMENT&quot;;

      /.
      Write the segment. 
      ./
      <b>spkw02_c</b> ( handle, 301,    3,      &quot;J2000&quot;, 
                 first,  last,   segid,  intlen, 
                 n,      polydg, cdata,  btime   ); 

      /.
      Close the file. 
      ./
      <a h