1VIEWPHSEG(3) MBK PHYSICAL FUNCTIONS VIEWPHSEG(3)
2
3
4
6 viewphfig - display elements of a phfig_list
7
9 #include "mph.h"
10 void viewphfig(ptfig)
11 phfig_list ∗ptfig;
12
14 ptfig Pointer to the phfig to be scanned
15
17 viewphfig scans all the primary elements of the phfig_list loaded in
18 ram, and displays a textual output of the data strcuture contents. The
19 PHINS, PHCON, PHSEG, PHVIA and PHREF are scanned, and their contents
20 displayed.
21 Its use is mostly for debugging purposes, and educational ones, since
22 the output is quite verbose, if very easy to understand.
23
25 #include <stdio.h>
26 #include "mph.h"
27 void view_fig_to_file(ptfig)
28 phfig_list ∗ptfig;
29 {
30 FILE ∗file = freopen(ptfig->NAME, WRITE_TEXT, stdout);
31 if (!file) {
32 (void)fputs("Can't reopen stdout!\n", stderr);
33 EXIT();
34 }
35 viewphfig(ptfig); /∗ to file called name ∗/
36 (void)fclose(file);
37 }
38
40 mbk(1), phfig(3), viewph(3), viewphins(3), viewphseg(3), viewphref(3),
41 viewphvia(3), viewphcon(3).
42
43
44
45
46
47
48ASIM/LIP6 October 1, 1997 VIEWPHSEG(3)