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

# allocrdsins(3)

allocates memory for an instance

## NAME

 allocrdsins - allocates memory for an instance

## SYNOPSYS

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