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

# getablexprlength(3)

gives the length of an expression.

## NAME

getablexprlength - gives the length of an expression.

## SYNOPSYS

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

## PARAMETERS

- *Expr*

  Expression.

## DESCRIPTION

**getablexprlength** gives the length of an expression.\

## RETURN VALUE

**getablexprlength** returns the length of *Expr*.

## EXAMPLE

```
#include "abl101.h"
   chain_list ∗ExprA;
   chain_list ∗ExprB;
   chain_list ∗ExprAorB;
   ExprA = createablatom( "a" );
   ExprB = createablatom( "b" );
   ExprAorB  = createablbinexpr( ABL_OR, ExprA, ExprB );
   /* displays 2 */
   printf( "%d", getablexprlength( ExprAorB ) );
```

## SEE ALSO

[**abl**(1)](/abl/1.md)
