getphins.3alc man page

getphins
getphins

getphins — retrieve a physical instance

Synopsis

#include "mph.h"
phins_list ∗getphins(ptfig, insname)
phfig_list ∗ptfig;
char ∗insname;

Parameters

ptfig

Pointer to the figure in which the instance should be seeked

insname

Name of the instance

Description

getphins looks in the list of instances of the physical model pointed to by ptfig for a instance identified by its insname.

Return Value

getphins returns a pointer to the instance that matches the insname.

Error

"∗∗∗ mbk error ∗∗∗ illegal getphins instance insname doesn't exist in figure ptfig->NAME"

No instance is called insname in the figure.

Example

#include "mph.h"
phins_list ∗exist(figname, insname)
char ∗figname, ∗insname;
{
   return getphins(getphfig(figname), insname);   
}

See Also

mbk(1), phfig(3), phins(3), addphins(3), delphins(3).

Referenced By

addphins.3alc(3), delphins.3alc(3), phins.3alc(3).

October 1, 1997 ASIM/LIP6 MBK PHYSICAL FUNCTIONS