1FREERDSFIG(3)               RDS PHYSICAL FUNCTIONS               FREERDSFIG(3)
2
3
4

NAME

6        freerdsfig - frees memory associated to a figure
7

SYNOPSIS

9       #include "rdsnnn.h"
10       void freerdsfig( Figure )
11         rdsfig_list ∗Figure;
12

PARAMETER

14       Figure              it's the pointer of the figure to be deleted.
15

DESCRIPTION

17       This  function  free  the memory associated to the figure. Memory place
18       used by the Pointers of the rdsfig_list structure is not  free  so  the
19       user has to free these pointers before calling the freerdsfig function.
20

RETURN VALUE

22       nothing
23

ERRORS

25       none
26

EXAMPLE

28       #include "mutnnn.h"
29       #include "rdsnnn.h"
30       #include "rtlnnn.h"
31              main()
32               {
33                 rdsfig_list ∗Figure;
34                      mbkenv();
35                      rdsenv();
36                      loadrdsparam();
37                 Figure = allocrdsfig ();
38                 Figure->NAME = rdsalloc(strlen("core")+1,RDS_ALLOC_BLOCK);
39                 strcpy(Figure->NAME,"core");
40                 ...
41                 rdsfree    (Figure->NAME,RDS_ALLOC_BLOCK);
42                 /∗ ∗/ freerdsfig ( Figure,RDS_ALLOC_BLOCK);
43               }
44

SEE ALSO

46       librds, allocrdsfig
47
48
49
50
51
52
53ASIM/LIP6                       October 1, 1997                  FREERDSFIG(3)
Impressum