getphref(3)

getphref3

Retrieve a physical reference

Synopsys

#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

Overview

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.

Examples

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

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.