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

# dupablexpr(3)

duplicates an expression.

## NAME

dupablexpr - duplicates an expression.

## SYNOPSYS

```
#include "abl101.h"
chain_list ∗dupablexpr( Expr )
  chain_list ∗Expr;
```

## PARAMETERS

- *Expr*

  Expression to duplicate.

## DESCRIPTION

**dupablexpr** duplicates the expression *Expr*.\

## RETURN VALUE

**dupablexpr** returns the duplicated expression.

## EXAMPLE

```
#include "abl101.h"
  chain_list ∗ExprAorB;
  chain_list ∗ExprAnorB;
  ExprAorB = createabloper( ABL_OR );
  addablhexpr( ExprAorB, createablatom( "a" ) );
  addablhexpr( ExprAorB, createablatom( "b" ) );
  ExprAnorB = createablnotexpr( dupablexpr( ExprAorB ) );
  /* displays (a or b) (a nor b) */
  viewablexpr( ExprAorB, ABL_VIEW_VHDL );
  viewablexpr( ExprAnorB, ABL_VIEW_VHDL );
```

## SEE ALSO

[**abl**(1)](/abl/1.md), **[delablexpr(3)](/delablexpr/3.md),** **[freeablexpr(3)](/freeablexpr/3.md).**
