1VIEWPH(3) MBK PHYSICAL FUNCTIONS VIEWPH(3)
2
3
4
6 viewph - display all the phfig_lists and their elements
7
9 #include "mph.h"
10 void viewph();
11
13 viewph scans all the elements of the entire phfig_list loaded in ram,
14 and displays a textual output of the data strcuture contents. All the
15 figures are treated, the first one being pointed to by HEAD_PHFIG, the
16 global variable that points to the head of all phfigs.
17 Its use is mostly for debugging purposes, and educational ones, since
18 the output is quite verbose, even if very easy to understand.
19
21 #include <stdio.h>
22 #include "mph.h"
23 void view_all_to_file(name)
24 char ∗name;
25 {
26 FILE ∗file = freopen(name, WRITE_TEXT, stdout);
27 if (!file) {
28 (void)fputs("Can't reopen stdout!\n", stderr);
29 EXIT();
30 }
31 viewph(); /∗ to file called name ∗/
32 (void)fclose(file);
33 }
34
36 mbk(1), phfig(3), view_phfig(3), view_phins(3), view_phseg(3),
37 view_phref(3), view_phvia(3), view_phfigcon(3).
38
39
40
41
42
43
44ASIM/LIP6 October 1, 1997 VIEWPH(3)