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

# viewrdsfig(3)

view caracteristics of a figure

## NAME

 viewrdsfig - view caracteristics of a figure

## SYNOPSYS

```
 #include "rdsnnn.h"
  void viewrdsfig( Figure )
   rdsins_list ∗Figure;
```

## PARAMETER

- *Figure*

  Pointer to the figure to visualize.

## DESCRIPTION

The *viewrdsfig* function displays caracteristics of the figure called ´Figure´ and all the objets contained in this figure.

- figure's parameters displayed to screen :

  - *NAME*

    figure's name.

  - *MODE*

    loading mode of the figure.

  - *SIZE*

    size of user structure added to the rdsrec\_list structure.

  Displays also rectangle and instance parameters of the figure (see viewrdsins and viewrdsrec functions).

## RETURN VALUE

nothing

## 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;
            mbkenv();
            rdsenv();
            loadrdsparam();
            Figure = addrdsfig ("core",sizeof ( UserStruct ) );
            Instance  = addrdsins (Figure,"na2_y","and2",RDS_NOSYM,8,6);
            Rectangle =
             addrdsfigrec(Figure,"Alu1",RDS_ALU1,2,4,12,1);
            /∗
              visualization of the figure and its items
            ∗/
            /∗ ∗/ viewrdsfig ( Figure );
          }
```

## SEE ALSO

**librds,** **viewrdsrec,** **viewrdsins**
