delphseg3
Delete a physical segment
Synopsys
#include "mph.h" int delphseg(ptfig, ptseg) phfig_list ∗ptfig; phseg_list ∗ptseg;
Parameters
ptfig
|
Pointer to the figure in which the segment should be deleted |
|---|---|
ptseg
|
Pointer to the segment to be deleted |
Overview
delphseg delete the segment pointed to by ptseg in the figure pointed to by ptfig. The list consistency is maintainded, and the space freed.
Return value
delphseg returns 1 if the segment has been deleted, 0 if no such segment exists in the list.
Examples
#include "mph.h"
char ∗was_existing(ptfig, ptseg)
phfig_list ∗ptfig;
phseg_list ∗ptseg;
{
/∗ if only one exists, it's this one ∗/
return delphseg(ptfig, ptseg) ? "you just killed it!"
: "wasn't here anyway";
}
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.