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

# getablexprnumocc(3)

how many times a name appears in an expression.

## NAME

getablexprnumocc - how many times a name appears in an expression.

## SYNOPSYS

```
#include "abl101.h"
long getablexprnumocc( Expr, Name )
  chain_list ∗Expr;
  char       ∗Name;
```

## PARAMETERS

- *Expr*

  Expression.

- *Name*

  Name to find.

## DESCRIPTION

**getablexprnumocc** gives the number of occurents of *Name* in *Expr*.\

## RETURN VALUE

**getablexprnumocc** returns number of occurents of *Name* in *Expr*.

## EXAMPLE

```
#include "abl101.h"
  chain_list ∗Expr;
  Expr = createablbinexpr( ABL_AND,
                           createablatom( "a" ),
                           createablatom( "b" ) );
  /* displays 1 */
  printf( "%d", getablexprnumocc( Expr, "a" ) );
```

## SEE ALSO

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