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.