.\" $Id: viewph.3,v 1.1 2002/03/08 13:51:04 fred Exp $ .\" @(#)viewph.2 2.11 91/08/22 ; Labo masi cao-vlsi; Author : Frederic Petrot .if t \{\ .XS \n% .ti 0.2i viewph .XE .XS0 \n% .ti 0.2i viewph .XE0 \} .TH VIEWPH 3 "October 1, 1997" "ASIM/LIP6" "MBK PHYSICAL FUNCTIONS" .SH NAME viewph \- display all the \fBphfig_list\fPs and their elements .so jessie/alliance/alc_origin.1.en.gz .SH SYNOPSYS .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #include "mph.h" void viewph(); .ft R .fi .SH DESCRIPTION \fBviewph\fP scans all the elements of the entire \fBphfig_list\fP loaded in ram, and displays a textual output of the data strcuture contents. All the figures are treated, the first one beeing pointed to by \fBHEAD_PHFIG\fP, the global variable that points to the head of all \fBphfig\fPs. .br Its use is mostly for debugging purposes, and educational ones, since the output is quite verbose, even if very easy to understand. .SH EXAMPLE .ta 3n 6n 9n 12n 15n 18n 21n .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #include #include "mph.h" void view_all_to_file(name) char \(**name; { FILE \(**file = freopen(name, WRITE_TEXT, stdout); if (!file) { (void)fputs("Can't reopen stdout!\\n", stderr); EXIT(); } viewph(); /\(** to file called name \(**/ (void)fclose(file); } .ft R .fi .SH SEE ALSO .BR mbk (1), .BR phfig (3), .BR view_phfig (3), .BR view_phins (3), .BR view_phseg (3), .BR view_phref (3), .BR view_phvia (3), .BR view_phfigcon (3). .so jessie/alliance/alc_bug_report.1.en.gz