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

NAME

6        freerdsins - frees memory associated to an instance
7

SYNOPSIS

9        #include "rdsnnn.h"
10        void freerdsins ( Instance )
11          rdsins_list ∗Instance;
12

PARAMETER

14        Instance           Pointer of the instance to free
15

DESCRIPTION

17       This function frees the memory associated to the instance. Memory place
18       used by the Pointers of the rdsins_list structure is not  free  so  the
19       user  has  to free these pointers before calling the freerdsins() func‐
20       tion.
21

RETURN VALUE

23       nothing
24

ERRORS

26       none
27

EXAMPLE

29                 #include "mutnnn.h"
30                 #include "rdsnnn.h"
31                 #include "rtlnnn.h"
32              main()
33               {
34                 rdsins_list ∗Instance;
35                      mbkenv();
36                      rdsenv();
37                      loadrdsparam();
38                 Instance = allocrdsins ();
39                 Instance->NAME = rdsalloc(strlen("and1")+1,RDS_ALLOC_BLOCK);
40                 strcpy(Instance->NAME,"and1");
41                 ...
42                 rdsfree    (Instance->NAME,RDS_ALLOC_BLOCK);
43                 /∗ ∗/ freerdsins ( Instance,RDS_ALLOC_BLOCK);
44               }
45

SEE ALSO

47       librds, allocrdsins
48
49
50
51
52
53
54ASIM/LIP6                       October 1, 1997                  FREERDSINS(3)
Impressum