1SAVEPHFIG(3)            MBK PHYSICAL UTILITY FUNCTIONS            SAVEPHFIG(3)
2
3
4

NAME

6       savephfig - save a physical figure on disk
7

SYNOPSIS

9       #include "mpu.h"
10       void savephfig(ptfig)
11       phfig_list ∗ptfig;
12

PARAMETER

14       ptfig               Pointer to the phfig to write on disk
15

DESCRIPTION

17       savephfig  writes  on  disk  the  contents  of the figure pointer to by
18       ptfig. All the figure  lists  are  ran  through,  and  the  appropriate
19       objects written, independently of the figure mode.
20       The  savephfig  function in fact performs a call to a driver, chosen by
21       the MBK_OUT_PH(1) environment variable. The directory in which the file
22       is to be written is the one set by MBK_WORK_LIB(1).  See MBK_OUT_PH(1),
23       MBK_WORK_LIB(1) and mbkenv(3) for details.
24

ERRORS

26       "∗∗∗ mbk error ∗∗∗ not supported physical output format 'xxx'"
27              The environment variable MBK_OUT_PH is not set to a legal physi‐
28              cal format.
29       "∗∗∗ mbk error ∗∗∗ savephfig : could not open file figname.ext"
30              Either  the  directory  or the file are write protected, so it's
31              not possible to open figname.ext, where ext is the  file  format
32              extension, for writing.
33

EXAMPLE

35       #include "mpu.h"
36       void save_na2_y()
37       {
38          savephfig(getphfig("na2_y"));
39       }
40

SEE ALSO

42       mbk(1),  mbkenv(3),  phfig(3),  addphfig(3),  getphfig(3), delphfig(3),
43       loadphfig(3),   flattenphfig(3),    rflattenphfig(3),    MBK_OUT_PH(1),
44       MBK_WORK_LIB(1).
45
46
47
48
49
50
51ASIM/LIP6                       October 1, 1997                   SAVEPHFIG(3)
Impressum