1RDSFREE(3) RDS PHYSICAL FUNCTIONS RDSFREE(3)
2
3
4
6 rdsfree - free memory place
7
9 #include "rdsnnn.h"
10 void rdsfree( Pointer, Size )
11 char ∗Pointer;
12 unsigned int Size;
13
15 Pointer pointer to the memory to free.
16
17 Size Size of the memory to free.
18
20 The rdsfree function deletes memory of size=´Size´ allocated with
21 rdsalloc function. If the parameter Size is set to ZERO (or
22 RDS_ALLOC_BLOCK) then the memory is deleted by BLOCK else the memory is
23 deleted by HEAP.
24
25 Note : A memory allocated by BLOCK (resp. by HEAP) must be deleted by
26 BLOCK (resp. by HEAP).
27
29 nothing
30
32 none
33
35 #include "rdsnnn.h"
36 main()
37 {
38 rdsrec_list ∗Rectangle;
39 rdsfig_list ∗Figure;
40 Figure = allocrdsfig ();
41 Rectangle = allocrdsrec ();
42 Rectangle->X = 20;
43 Rectangle->Y = 20;
44 Rectangle->DX = 48;
45 Rectangle->DY = 8;
46 ...
47 /∗ ∗/ rdsfree ( Rectangle, sizeof (rdsrec_list));
48 /∗ deletes a figure allocated by block ∗/
49 /∗ ∗/ rdsfree ( Figure , RDS_ALLOC_BLOCK);
50 }
51
53 librds, rdsalloc
54
55
56
57
58
59
60ASIM/LIP6 October 1, 1997 RDSFREE(3)