getphref.3alc - Man Page

retrieve a physical reference

Synopsis

#include "mph.h"
phref_list ∗getphref(ptfig, refname)
phfig_list ∗ptfig;
char ∗refname;

Parameters

ptfig

Pointer to the figure in which the reference should be seeked

refname

Name of the reference

Description

getphref looks in the list of references of the physical model pointed to by ptfig for a reference identified by its refname.

Return Value

getphref returns a pointer to the reference that matches the refname.

Error

"∗∗∗ mbk error ∗∗∗ illegal getphref reference refname doesn't exist in figure ptfig->NAME"

No reference is called refname in the figure.

Example

#include "mph.h"
phref_list ∗exist(figname, refname)
char ∗figname, ∗refname;
{
   return getphref(getphfig(figname), refname);   
}

See Also

mbk(1), phfig(3), phref(3), addphref(3), delphref(3).

Referenced By

addphref.3alc(3), delphref.3alc(3), phref.3alc(3).

October 1, 1997 ASIM/LIP6 MBK PHYSICAL FUNCTIONS