dellocap(3)

dellocap3

Delete a logical capacitor

Synopsys

#include "mlo.h"
int dellocap(ptfig,ptcap)
lofig_list ∗ptfig ;
locap_list ∗ptcap ;

Parameters

ptfig

Pointer to the figure in which the capacitor should be deleted

ptcap

Pointer to the capacitor to be deleted.

Overview

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

Return value

dellocap returns 1 if the capacitor has been deleted, 0 if the capacitor pointer does not exists in the list.

Examples

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

Releases

Unchanged in 4 releases since Debian 7 (Wheezy).

  1. 7–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.