getablexprnumocc(3)

getablexprnumocc3

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.

Overview

getablexprnumocc gives the number of occurents of Name in Expr.

Return value

getablexprnumocc returns number of occurents of Name in Expr.

Examples

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

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.