Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
GETPHCON(3)		    MBK	PHYSICAL FUNCTIONS		   GETPHCON(3)

NAME
       getphcon	- retrieve a physical connector

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

PARAMETERS
       ptfig		   Pointer to the figure in which the connector	should
			   be seeked

       conname		   Name	of the connector

       index		   Connector index

DESCRIPTION
       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  in-
       ternally	wired connectors have the same name.

RETURN VALUE
       getphcon	returns	a pointer to the given connector.

ERRORS
       "*** mbk	error *** illegal getphcon connector conname.index doesn't ex-
       ist in figure ptfig-_NAME"
	      No connectors match both arguments.

EXAMPLE
       #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);
       }

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

ASIM/LIP6			October	1, 1997			   GETPHCON(3)

NAME | SYNOPSYS | PARAMETERS | DESCRIPTION | RETURN VALUE | ERRORS | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=getphcon&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help