graph_close.c 356 B

123456789101112131415161718192021
  1. /*
  2. * Close down the graphics processing. This gets called only at driver
  3. * termination time.
  4. */
  5. #include <grass/gis.h>
  6. #include "psdriver.h"
  7. void PS_Graph_close(void)
  8. {
  9. if (!ps.no_trailer) {
  10. output("%%%%BeginTrailer\n");
  11. output("END\n");
  12. output("%%%%EndTrailer\n");
  13. }
  14. fclose(ps.tempfp);
  15. G_rename_file(ps.tempfile, ps.outfile);
  16. }