dupablexpr(3) - Linux man page

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), delablexpr(3), freeablexpr(3).