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

NAME

6        allocrdsins - allocates memory for an instance
7

SYNOPSIS

9       #include"rdsnnn.h"
10       rdsins_list ∗allocrdsins()
11

PARAMETER

13       none
14

DESCRIPTION

16       Allocates a memory block for rdsins_list structure. Fields contained in
17       the structure are set to NULL for the pointers and 0L for numbers.
18
19       NOTE: Allocation by block ( see rdsalloc() function ).
20

RETURN VALUE

22       The pointer to the allocated instance.
23

ERRORS

25       "Rds202: rdsalloc error, can't continue !"
26              it's impossible to allocate the memory size desired.
27

EXAMPLE

29                   #include "mutnnn.h"
30              #include "rdsnnn.h"
31              #include "rtlnnn.h"
32              main()
33               {
34                 rdsins_list ∗RdsInstance;
35                      mbkenv();
36                      rdsenv();
37                      loadrdsparam();
38                 RdsInstance = allocrdsins ();
39                 RdsInstance->FIGNAME = namealloc ("na2_y");
40                 RdsInstance->INSNAME = namealloc ("and2");
41                 ...
42               }
43

SEE ALSO

45       librds, freerdsins, rdsalloc, rdsfree
46
47
48
49
50
51
52ASIM/LIP6                       October 1, 1997                 ALLOCRDSINS(3)
Impressum