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

# viewablexprstr(3)

displays an expression in a str.

## NAME

viewablexprstr - displays an expression in a str.

## SYNOPSYS

```
#include "abl101.h"
char *viewablexprstr( Expr, Mode )
  chain_list ∗Expr;
  int         Mode;
```

## PARAMETERS

- *Expr*

  Expression to display.

- *Mode*

  The notation type.

## DESCRIPTION

**viewablexprstr** displays *Expr* in a string, with the notation  specified by *Mode*.  The following notation types are available  ABL\_VIEW\_INFIX, ABL\_VIEW\_PREFIX, ABL\_VIEW\_POSTFIX or ABL\_VIEW\_VHDL.\

## RETURN VALUE

**viewablexprstr** returns a pointer to the string where the expression has been displayed in. This string MUSTN'T be freed.

## EXAMPLE

```
#include "abl101.h"
  chain_list ∗Expr;
  char       ∗String;
  Expr = createabloper( ABL_OR );
  addablhexpr( Expr, createablatom( "a" ) );
  addablhexpr( Expr, createablatom( "b" ) );
  /* displays (a or b) */
  String = viewablexprstr( Expr, ABL_VIEW_VHDL );
  printf( String );
```

## SEE ALSO

[**abl**(1)](/abl/1.md), **[viewablexprfile(3)](/viewablexprfile/3.md),** **[viewablexpr(3)](/viewablexpr/3.md).**
