1VIEWLO(3) MBK LOGICAL FUNCTIONS VIEWLO(3)
2
3
4
6 viewlo - scan all lofig_lists and display their elements
7
9 #include "mlo.h"
10 void viewlo();
11
13 viewlo scans all the elements of the entire lofig_list loaded in ram,
14 and displays a textual output of the data strcuture contents. All the
15 figures are treated, the first one being pointed to by HEAD_LOFIG, the
16 global variable that points to the head of all lofigs.
17 Its use is mostly for debugging purposes, and educational ones, since
18 the output is quite verbose, if very easy to understand.
19
21 #include <stdio.h>
22 #include "mlo.h"
23 void view_all_to_file(name)
24 char ∗name;
25 {
26 FILE ∗file = freopen(name, WRITE_TEXT, stdout);
27 if (!file) {
28 (void)fputs("Can't reopen stdout!\n", stderr);
29 EXIT();
30 }
31 viewlo(); /∗ to file called name ∗/
32 (void)fclose(file);
33 }
34
36 mbk(1), lofig(3), viewlofig(3), viewloins(3), viewlotrs(3),
37 viewlosig(3), viewloinscon(3), viewlofigcon(3).
38
39
40
41
42
43
44ASIM/LIP6 October 1, 1997 VIEWLO(3)