delphcon.3alc - Man Page

delete a physical connector

Synopsis

#include "mph.h"
int delphcon(ptfig, ptcon)
phfig_list ∗ptfig;
phcon_list ∗ptcon;

Parameters

ptfig

Pointer to the figure in which the connector should be deleted

ptcon

Pointer to the connector to be deleted.

Description

delphcon delete the connector pointed to by ptcon in the figure  pointed to by ptfig. The list and index consistency is maintainded, and the space freed.

Return Value

delphcon returns 1 if the connector has been deleted, 0 if no such connector exists in the list.

Example

#include "mph.h"
char ∗was_existing(ptfig, ptcon)
phfig_list ∗ptfig;
phcon_list ∗ptcon;
{
   /∗ if only one exists, it's this one ∗/
   return delphcon(ptfig, ptcon) ? "you just killed it!0
                                 : "wasn't here anyway0; 
}

See Also

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

Referenced By

addphcon.3alc(3), getphcon.3alc(3), phcon.3alc(3).

October 1, 1997 ASIM/LIP6 MBK PHYSICAL FUNCTIONS