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

# dellores(3)

delete a logical resistor

## NAME

dellores - delete a logical resistor

## SYNOPSYS

```
#include "mlo.h"
int dellores(ptfig,ptres)
lofig_list ∗ptfig ;
lores_list ∗ptres ;
```

## PARAMETERS

- *ptfig*

  Pointer to the figure in which the resistor should be deleted

- *ptres*

  Pointer to the resistor to be deleted.

## DESCRIPTION

**dellores** delete the resistor pointed to by *ptres* in the figure  pointed to by *ptfig*.  The list consistency is maintainded, and the space freed. The resistor connectors are also freed, since if the resistor disapear, no more connections can occur on it.

## RETURN VALUE

**dellores** returns **1** if the resistor has been deleted, **0** if the resistor pointer does not exists in the list.

## EXAMPLE

```
#include "mlo.h"
char ∗was_existing(lofig_list ∗ptfig,lores_list ∗ptres)
{
  return dellores(ptfig,ptres) ? "you just killed it!" : "wasn't here anyway" ;
}
```

## SEE ALSO

**mbk**(1), [**lofig**(3)](/lofig/3.md), [**lores**(3)](/lores/3.md), [**addlores**(3)](/addlores/3.md).
