---
name: "allocrdsfig"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/allocrdsfig"
---

# allocrdsfig(3)

allocs memory for a figure

## NAME

 allocrdsfig - allocs memory for a figure

## SYNOPSYS

```
#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**
