viewphfig.3alc - Man Page

display elements of a phfig_list

Synopsis

#include "mph.h"
void viewphfig(ptfig)
phfig_list ∗ptfig;

Parameter

ptfig

Pointer to the phfig to be scanned

Description

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 scanned, and their contents displayed.
Its use is mostly for debugging purposes, and educational ones, since the output is quite verbose, if very easy to understand.

Example

#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);
}

See Also

mbk(1), phfig(3), viewph(3), viewphins(3), viewphseg(3), viewphref(3), viewphvia(3), viewphcon(3).

Referenced By

viewphcon.3alc(3), viewphins.3alc(3), viewphref.3alc(3), viewphseg.3alc(3), viewphvia.3alc(3).

October 1, 1997 ASIM/LIP6 MBK PHYSICAL FUNCTIONS