dellores(3)

dellores3

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.

Overview

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.

Examples

#include "mlo.h"
char ∗was_existing(lofig_list ∗ptfig,lores_list ∗ptres)
{
  return dellores(ptfig,ptres) ? "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.