viewlofig3
Display elements of a lofig_list
Synopsys
#include "mlo.h" void viewlofig(ptfig) lofig_list ∗ptfig;
Parameter
- ptfig
-
Pointer to the
lofigto be scaned
Overview
viewlofig scans all the primary elements of the lofig_list loaded in ram, and displays a textual output of the data strcuture contents. The LOINS, LOCON, LOSIG and LOTRS 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.
Examples
#include <stdio.h>
#include "mlo.h"
void view_fig_to_file(ptfig)
lofig_list ∗ptfig;
{
FILE ∗file = freopen(ptfig->NAME, WRITE_TEXT, stdout);
if (!file) {
(void)fputs("Can't reopen stdout!\n", stderr);
EXIT();
}
viewlofig(ptfig->NAME); /∗ to file called name ∗/
(void)fclose(file);
}
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.