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

# getlosig(3)

retrieve a logical signal

## NAME

getlosig - retrieve a logical signal

## SYNOPSYS

```
#include "mlo.h"
losig_list ∗getlosig(ptfig, index)
lofig_list ∗ptfig;
long index;
```

## PARAMETERS

- *ptfig*

  Pointer to the figure in which the signal should be seeked

- *index*

  Index of the signal

## DESCRIPTION

**getlosig** looks in the list of signals of the logical model pointed to by *ptfig* for a signal identified by its *index*. This signal is unique, since the *index* is the signal identifier.

## RETURN VALUE

**getlosig** returns a pointer to the signal that matches the *index*.

## ERRORS

**"∗∗∗ mbk error ∗∗∗ illegal getlosig signal** *index* **doesn't exist** **in figure** *ptfig-\>NAME***"**

No signal has *index* as *INDEX* in the figure.

## EXAMPLE

```
#include "mlo.h"
losig_list ∗get_sig_by_name(figname, index)
char ∗figname;
long index;
{
   return getlosig(getlofig(figname), index);
}
```

## SEE ALSO

**mbk**(1), [**lofig**(3)](/lofig/3.md), [**losig**(3)](/losig/3.md), [**addlosig**(3)](/addlosig/3.md), [**dellosig**(3)](/dellosig/3.md).
