allocrdsins.3alc man page

allocrdsins — allocates memory for an instance

Synopsis

#include"rdsnnn.h"
rdsins_list ∗allocrdsins()

Parameter

none

Description

Allocates a memory block for rdsins_list structure. Fields contained in the structure are set to NULL for the pointers and 0L for numbers.

NOTE: Allocation by block ( see rdsalloc() function ).

Return Value

The pointer to the allocated instance.

Errors

"Rds202: rdsalloc error, can't continue !"

it's impossible to allocate the memory size desired.

Example

            #include "mutnnn.h" 
	    #include "rdsnnn.h"
	    #include "rtlnnn.h"
	    main()
	     {
	       rdsins_list ∗RdsInstance;
               mbkenv();
               rdsenv();
               loadrdsparam();
	       RdsInstance = allocrdsins ();
	       RdsInstance->FIGNAME = namealloc ("na2_y");
	       RdsInstance->INSNAME = namealloc ("and2");
	       ...
	     }

See Also

librds, freerdsins, rdsalloc, rdsfree

Info

October 1, 1997 ASIM/LIP6 RDS PHYSICAL FUNCTIONS