Provided by: alliance_5.0-20120515-6_amd64 

#include "mph.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 strcuture contents. The PHINS, PHCON, PHSEG, PHVIA and PHREF are scaned, and their contents displayed.
#include <stdio.h>
#include "mph.h"
void view_fig_to_file(ptfig)
phfig_list ∗ptfig;
{
FILE ∗file = freopen(ptfig−>NAME, WRITE_TEXT, stdout);
if (!file) {
(void)fputs("Can’t reopen stdout!\n", stderr);
EXIT();
}
viewphfig(ptfig); /∗ to file called name ∗/
(void)fclose(file);