Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
viewphfig - display elements of	a phfig_list
#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.
Its use	is mostly for debugging	purposes, and  educational  ones,
since the output is quite verbose, if very easy	to understand.
#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);
}


#include "mph.h" | void viewphfig(ptfig) | phfig_list *ptfig; | #include "mph.h" | void view_fig_to_file(ptfig) | phfig_list *ptfig; | { | FILE *file = freopen(ptfig->NAME, WRITE_TEXT, stdout); | }

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=viewphfig&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help