allocrdsfig.3alc - Man Page

allocs memory for a figure

Synopsis

#include "rdsnnn.h"
rdsfig_list ∗allocrdsfig()

Parameter

none

Description

The allocrdsfig function allocates a memory block for rdsfig_list structure. Fields contained in the structure are set to NULL for pointers or 0L for numbers.

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

Return Value

allocrdsfig returns a pointer to the rdsfig_list structure allocated.

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()
	     {
	       rdsfig_list ∗RdsFigure;
               mbkenv();
               rdsenv();
               loadrdsparam();
	       RdsFigure = allocrdsfig ();
	       RdsFigure->NAME = namealloc ("core");
	       ...
	     }

See Also

librds, rdsalloc, rdsfree, freerdsfig

Referenced By

delrdsfig.3alc(3), freerdsfig.3alc(3).

October 1, 1997 ASIM/LIP6 RDS PHYSICAL FUNCTIONS