1ALLOCRDSINS(3) RDS PHYSICAL FUNCTIONS ALLOCRDSINS(3)
2
3
4
6 allocrdsins - allocates memory for an instance
7
9 #include"rdsnnn.h"
10 rdsins_list ∗allocrdsins()
11
13 none
14
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
22 The pointer to the allocated instance.
23
25 "Rds202: rdsalloc error, can't continue !"
26 it's impossible to allocate the memory size desired.
27
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
45 librds, freerdsins, rdsalloc, rdsfree
46
47
48
49
50
51
52ASIM/LIP6 October 1, 1997 ALLOCRDSINS(3)