1DELRDSFIGREC(3) RDS PHYSICAL FUNCTIONS DELRDSFIGREC(3)
2
3
4
6 delrdsfigrec - deletes a rectangle of a figure
7
9 #include"rdsnnn.h"
10 int delrdsfigrec( Figure, Rectangle )
11 rdsfig_list ∗Figure;
12 rdsrec_list ∗Rectangle;
13
15 Figure Figure which contains the rectangle to delete.
16
17 Rectangle The rectangle to delete
18
20 The delrdsfigrec function deletes a rectangle object (which is composed
21 of the rdsrec_list structure and an eventually added structure) from a
22 figure.
23
25 1 => The rectangle has been deleted.
26 0 => The rectangle doesn't exist.
27
29 None
30
32 #include "mutnnn.h"
33 #include "rdsnnn.h"
34 #include "rtlnnn.h"
35 typedef struct UserStruct
36 {
37 char ∗STRING;
38 void ∗USER1;
39 } UserStruct;
40 main()
41 {
42 rdsfig_list ∗Figure;
43 rdsrec_list ∗Rectangle;
44 int Result;
45 mbkenv();
46 rdsenv();
47 loadrdsparam();
48 Figure = addrdsfig ("core",sizeof ( UserStruct ) );
49 Rectangle =
50 addrdsfigrec(Figure,"Alu1",RDS_ALU1,2,4,12,1);
51 /∗
52 deletes the rectangle of the figure
53 ∗/
54 Result = delrdsfigrec ( Figure,Rectangle );
55 if ( Result == 0 ) printf("Rectangle not found !\n");
56 }
57
59 librds, allocrdsfigrec
60
61
62
63
64
65
66ASIM/LIP6 October 1, 1997 DELRDSFIGREC(3)