DOKK / manpages / debian 10 / alliance / getphcon.3.en
GETPHCON(3) MBK PHYSICAL FUNCTIONS GETPHCON(3)

getphcon - retrieve a physical connector

See the file buster/alliance/alc_origin.1.en.gz.

#include "mph.h"
phcon_list ∗getphcon(ptfig, conname, index)
phfig_list ∗ptfig;
char ∗conname;
long index;

Pointer to the figure in which the connector should be seeked
Name of the connector
Connector index

getphcon looks in the list of connectors of the physical model pointed to by ptfig for a connector identified by its conname and index. Both are needed to make sure the right connector is given back since n internally wired connectors have the same name.

getphcon returns a pointer to the given connector.

"∗∗∗ mbk error ∗∗∗ illegal getphcon connector conname.index doesn't exist in figure ptfig->NAME"

No connectors match both arguments.

#include "mph.h"
phcon_list ∗exist(figname, conname)
char ∗figname, ∗conname;
{

/∗ if only one exists, it's this one ∗/
return getphcon(getphfig(figname), conname, 0L); }

mbk(1), phfig(3), phcon(3), addphcon(3), delphcon(3).

See the file buster/alliance/alc_bug_report.1.en.gz.

October 1, 1997 ASIM/LIP6