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

# delrdsinsrec(3)

deletes a rectangle of an instance

## NAME

delrdsinsrec - deletes a rectangle of an instance

## SYNOPSYS

```
#include"rdsnnn.h"
 int delrdsinsrec( Instance, Rectangle )
      rdsins_list ∗Instance;
      rdsrec_list ∗Rectangle;
```

## PARAMETER

- *Instance*

  Instance which contains the rectangle to delete.

- *Rectangle*

  The rectangle to delete.

## DESCRIPTION

The *delrdsinsrec* function deletes a rectangle of an RDS instance.

## RETURN VALUE

1 =\> The rectangle has been deleted.\
 0 =\> The rectangle doesn't exist.

## ERRORS

None

## EXAMPLE

```
        #include "mutnnn.h"
        #include "rdsnnn.h"
        #include "rtlnnn.h"
        typedef struct UserStruct
         {
           char ∗STRING;
           void ∗USER1;
         } UserStruct;
         main()
          {
            rdsfig_list ∗Figure;
            rdsrec_list ∗Rectangle;
            rdsins_list ∗Instance;
            int          Result;
            mbkenv();
            rdsenv();
            loadrdsparam();
            Figure = addrdsfig ("core",sizeof ( UserStruct ) );
            Instance  = addrdsins (Figure,"na2_y","and2",RDS_NOSYM,8,6);
            Rectangle =
             addrdsinsrec(Instance,"Alu1",RDS_ALU1,2,4,12,1);
            /∗
              destruction of the rectangle of the instance
            ∗/
            Result = delrdsinsrec ( Instance,Rectangle );
            if ( Result == 0 ) printf("Rectangle not found !\n");
          }
```

## SEE ALSO

**librds,** **allocrdsinsrec**
