getablexprnumocc(3) - Linux man page
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)