1DELPHSEG(3) MBK PHYSICAL FUNCTIONS DELPHSEG(3)
2
3
4
6 delphseg - delete a physical segment
7
9 #include "mph.h"
10 int delphseg(ptfig, ptseg)
11 phfig_list ∗ptfig;
12 phseg_list ∗ptseg;
13
15 ptfig Pointer to the figure in which the segment should
16 be deleted
17
18 ptseg Pointer to the segment to be deleted
19
21 delphseg delete the segment pointed to by ptseg in the figure pointed
22 to by ptfig. The list consistency is maintainded, and the space freed.
23
25 delphseg returns 1 if the segment has been deleted, 0 if no such seg‐
26 ment exists in the list.
27
29 #include "mph.h"
30 char ∗was_existing(ptfig, ptseg)
31 phfig_list ∗ptfig;
32 phseg_list ∗ptseg;
33 {
34 /∗ if only one exists, it's this one ∗/
35 return delphseg(ptfig, ptseg) ? "you just killed it!"
36 : "wasn't here anyway";
37 }
38
40 mbk(1), phfig(3), phseg(3), addphseg(3).
41
42
43
44
45
46
47ASIM/LIP6 October 1, 1997 DELPHSEG(3)