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

# dellocon(3)

delete a logical connector

## NAME

dellocon - delete a logical connector

## SYNOPSYS

```
#include "mlo.h"
int dellocon(ptfig, name)
lofig_list ∗ptfig;
char ∗name;
```

## PARAMETERS

- *ptfig*

  Pointer to the figure in which the connector should be deleted

- *name*

  Name of the connector to be deleted.

## DESCRIPTION

**dellocon** deletes the connector called *name* in the figure  pointed to by *ptfig*. The list consistency is maintained, and the space freed.

## RETURN VALUE

**dellocon** returns **1** if the connector has been deleted, **0** if no such connector exists in the list.

## EXAMPLE

```
#include "mlo.h"
char ∗was_existing(p, s)
lofig_list ∗p;
char ∗s;
{
   return dellocon(p, s) ? "you just killed it!0
                         : "wasn't here anyway0;
}
```

## SEE ALSO

**mbk**(1), [**lofig**(3)](/lofig/3.md), [**locon**(3)](/locon/3.md), [**addlocon**(3)](/addlocon/3.md), [**getlocon**(3)](/getlocon/3.md).
