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).