delphins3
Delete a physical instance
Synopsys
#include "mph.h" int delphins(ptfig, insname) phfig_list ∗ptfig; char ∗insname;
Parameters
ptfig
|
Pointer to the figure in which the instance should be deleted |
|---|---|
insname
|
Name of the instance to be deleted. |
Overview
delphins delete the instance called insname in the figure pointed to by ptfig. This instance is warrantied to be unique, because its name is an identifier at the given hierarchical level. The list consistency is maintainded, and the space freed.
Return value
delphins returns 1 if the instance has been deleted, 0 if no such instance exists in the list.
Examples
#include "mph.h"
char ∗was_existing(ptfig, insname)
phfig_list ∗ptfig;
char ∗insname;
{
return delphins(ptfig, insname) ? "you just killed it!"
: "wasn't here anyway";
}
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.