Loading...
Searching...
No Matches
psdriver/graph_close.c
Go to the documentation of this file.
/*
* Close down the graphics processing. This gets called only at driver
* termination time.
*/
#include <grass/gis.h>
#include "psdriver.h"
void PS_Graph_close(void)
{
if (!ps.no_trailer) {
output("%%%%BeginTrailer\n");
output("END\n");
output("%%%%EndTrailer\n");
}
fclose(ps.tempfp);
G_rename_file(ps.tempfile, ps.outfile);
}
PS_Graph_close
void PS_Graph_close(void)
Definition psdriver/graph_close.c:9
ps
struct ps_state ps
Definition psdriver/graph_set.c:26
output
void output(const char *fmt,...)
Definition psdriver/graph_set.c:233
psdriver.h
G_rename_file
int G_rename_file(const char *oldname, const char *newname)
Rename a file or a directory in the filesystem.
Definition rename.c:31