1VIEWLOFIG(3)                 MBK LOGICAL FUNCTIONS                VIEWLOFIG(3)
2
3
4

NAME

6       viewlofig - display elements of a lofig_list
7

SYNOPSIS

9       #include "mlo.h"
10       void viewlofig(ptfig)
11       lofig_list ∗ptfig;
12

PARAMETER

14       ptfig               Pointer to the lofig to be scanned
15

DESCRIPTION

17       viewlofig  scans  all  the primary elements of the lofig_list loaded in
18       ram, and displays a textual output of the data strcuture contents.  The
19       LOINS,  LOCON,  LOSIG  and  LOTRS  are scanned, and their contents dis‐
20       played.
21       Its use is mostly for debugging purposes, and educational  ones,  since
22       the output is quite verbose, if very easy to understand.
23

EXAMPLE

25       #include <stdio.h>
26       #include "mlo.h"
27       void view_fig_to_file(ptfig)
28       lofig_list ∗ptfig;
29       {
30       FILE ∗file = freopen(ptfig->NAME, WRITE_TEXT, stdout);
31          if (!file) {
32             (void)fputs("Can't reopen stdout!\n", stderr);
33             EXIT();
34          }
35          viewlofig(ptfig->NAME); /∗ to file called name ∗/
36          (void)fclose(file);
37       }
38

SEE ALSO

40       mbk(1),  lofig(3), viewlo(3), viewloins(3), viewlotrs(3), viewlosig(3),
41       viewloinscon(3), viewlofigcon(3).
42
43
44
45
46
47
48ASIM/LIP6                       October 1, 1997                   VIEWLOFIG(3)
Impressum