getlores(3)

getlores3

Retrieve a logical resistor

Synopsys

#include "mlo.h"
lores_list ∗getlores(ptfig,name)
lofig_list ∗ptfig ;
const char ∗name ;

Parameters

ptfig

Pointer to the figure in which the resistor should be seeked

name

Instance name of the resistor

Overview

getlores looks in the list of resistors of the logical model pointed to by ptfig for a resistor identified by its instance name.

Return value

getlores returns a pointer to the given resistor.

Errors

"∗∗∗ mbk error ∗∗∗ getlores impossible : resistor name doesn't exist in figure ptfig -> NAME"

No resistor matches the name.

Examples

#include "mlo.h"
lores_list ∗exist(char ∗figname,char ∗resname)
{
  return getlores(getlofig(figname,'A'),resname) ;
}

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.