GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
psdriver/graph_close.c
Go to the documentation of this file.
1
/*
2
* Close down the graphics processing. This gets called only at driver
3
* termination time.
4
*/
5
6
#include <
grass/gis.h
>
7
#include "
psdriver.h
"
8
9
void
PS_Graph_close
(
void
)
10
{
11
if
(!
ps
.
no_trailer
) {
12
output
(
"%%%%BeginTrailer\n"
);
13
output
(
"END\n"
);
14
output
(
"%%%%EndTrailer\n"
);
15
}
16
17
fclose(
ps
.
tempfp
);
18
19
G_rename_file
(
ps
.
tempfile
,
ps
.
outfile
);
20
}
G_rename_file
int G_rename_file(const char *, const char *)
Rename a file or a directory in the filesystem.
Definition:
rename.c:31
gis.h
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:232
psdriver.h
ps_state::tempfp
FILE * tempfp
Definition:
psdriver.h:13
ps_state::no_trailer
int no_trailer
Definition:
psdriver.h:16
ps_state::outfile
const char * outfile
Definition:
psdriver.h:12
ps_state::tempfile
const char * tempfile
Definition:
psdriver.h:12
lib
psdriver
graph_close.c
Generated on Thu Mar 20 2025 07:33:25 for GRASS GIS 8 Programmer's Manual by
1.9.1