delphref.3alc - Man Page

delete a physical reference

Synopsis

#include "mph.h"
int delphref(ptfig, ptref)
phfig_list ∗ptfig;
phref_list ∗ptref;

Parameters

ptfig

Pointer to the figure in which the reference should be deleted

ptref

Pointer to the reference to be deleted.

Description

delphref delete the reference pointed to by ptref in the figure  pointed to by ptfig. The list consistency is maintainded, and the space freed.

Return Value

delphref returns 1 if the reference has been deleted, 0 if no such reference exists in the list.

Example

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

See Also

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

Referenced By

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

October 1, 1997 ASIM/LIP6 MBK PHYSICAL FUNCTIONS