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

# delloself(3)

delete a logical inductor

## NAME

delloself - delete a logical inductor

## SYNOPSYS

```
#include "mlo.h"
int delloself(ptfig,ptself)
lofig_list ∗ptfig ;
loself_list ∗ptself ;
```

## PARAMETERS

- *ptfig*

  Pointer to the figure in which the inductor should be deleted

- *ptself*

  Pointer to the inductor to be deleted.

## DESCRIPTION

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

## RETURN VALUE

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

## EXAMPLE

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

## SEE ALSO

**mbk**(1), [**lofig**(3)](/lofig/3.md), [**loself**(3)](/loself/3.md), [**addloself**(3)](/addloself/3.md).
