getlores.3alc - Man Page

retrieve a logical resistor

Synopsis

#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

Description

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.

Example

#include "mlo.h"

lores_list ∗exist(char ∗figname,char ∗resname)
{
  return getlores(getlofig(figname,'A'),resname) ;
}

See Also

mbk(1), lofig(3), lores(3), addlores(3), dellores(3).

Referenced By

lores.3alc(3), setlores.3alc(3).

August 14, 2002 ASIM/LIP6 MBK LOGICAL FUNCTIONS