---
name: "viewlo"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/viewlo"
---

# viewlo(3)

scan all lofig\_lists and display their elements

## NAME

viewlo - scan all **lofig\_list**s and display their elements

## SYNOPSYS

```
#include "mlo.h"
void viewlo();
```

## DESCRIPTION

**viewlo** scans all the elements of the entire **lofig\_list**  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 **HEAD\_LOFIG**, the global variable that points to the head of all **lofig**s.\
 Its use is mostly for debugging purposes, and educational ones, since the output is quite verbose, if very easy to understand.

## EXAMPLE

```
#include <stdio.h>
#include "mlo.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();
	}
	viewlo(); /∗ to file called name ∗/
	(void)fclose(file);
}
```

## SEE ALSO

**mbk**(1), [**lofig**(3)](/lofig/3.md), [**viewlofig**(3)](/viewlofig/3.md), [**viewloins**(3)](/viewloins/3.md), [**viewlotrs**(3)](/viewlotrs/3.md), [**viewlosig**(3)](/viewlosig/3.md), [**viewloinscon**(3)](/viewloinscon/3.md), [**viewlofigcon**(3)](/viewlofigcon/3.md).
