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

# viewphvia(3)

display elements of a phvia\_list

## NAME

viewphvia - display elements of a **phvia\_list**

## SYNOPSYS

```
#include "mph.h"
void viewphvia(pt)
phvia_list ∗pt;
```

## PARAMETER

- *pt*

  Pointer to the **phvia** to be scaned

## DESCRIPTION

**viewphvia** scans all the primary elements of the **phvia\_list**  pointed to by *pt*, and displays a textual output of the data strcuture contents.\
 Its use is mostly for debugging purposes, and educational ones, since the output is quite verbose, even if very easy to understand.

## EXAMPLE

```
#include <stdio.h>
#include "mph.h"
void view_via(ptfig)
phfig_list ∗ptfig;
{
phvia_list ∗via;
	for (via = ptfig->PHVIA; via; via = via->NEXT)
		viewphvia(via);
}
```

## SEE ALSO

**mbk**(1), [**phvia**(3)](/phvia/3.md), [**viewph**(3)](/viewph/3.md), [**viewphfig**(3)](/viewphfig/3.md), [**viewphseg**(3)](/viewphseg/3.md), [**viewphref**(3)](/viewphref/3.md), [**viewphins**(3)](/viewphins/3.md), [**viewphcon**(3)](/viewphcon/3.md).
