|
NAMEaddlores - create a logical resistor See the file man1/alc_origin.1. SYNOPSIS#include "mlo.h" lores_list ∗addlores(ptfig,type,resi,rcon1,rcon2,name) lofig_list ∗ptfig ; char type ; double resi ; losig_list ∗rcon1, ∗rcon2 ; const char ∗name ; PARAMETERSDESCRIPTIONaddlores creates a new resistor, and adds it to the list of
resistors pointed to by ptfig -> LORES. The new resistor is added
in front of the list, and becomes itself the list head.
The resi argument is the resistor value in Ohms.
RETURN VALUEaddlores returns a pointer to the newly created resistor. ERRORS"∗∗∗ mbk error ∗∗∗ illegal resistor type : type" The type is not a legal resistor type.
EXAMPLE
#include "mlo.h"
void parallel_resistors(void) /∗ netlist of two parallel resistors ∗/
{
SEE ALSOmbk(1), lofig(3), lores(3), locon(3), dellores(3). See the file man1/alc_bug_report.1.
|