viewphfig - display elements of a phfig_list
#include mph402.h"
void viewphfig(ptfig)
phfig_list *ptfig;
ptfig Pointer to the phfig to be scaned viewphfig scans all the primary elements
of the phfig_list loaded in ram, and displays a textual output of the data strcu-
ture contents. The PHINS, PHCON, PHSEG, PHVIA and PHREF are scaned, and their
contents displayed.
is quite verbose, if very easy to understand.
#include <stdio.h>
#include mph402.h"
void view_fig_to_file(ptfig)
phfig_list *ptfig;
{
if (!file) {
(void)fputs("Can't reopen stdout!\n", stderr);
EXIT();
}
viewphfig(ptfig)
; /* to file called name */
(void)fclose(file);
}