getablexprnumocc.3alc - Man Page
how many times a name appears in an expression.
Synopsis
#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 occurrents of Name in Expr.
Return Value
getablexprnumocc returns number of occurrents 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
Info
October 1, 1997 ASIM/LIP6 ABL FUNCTIONS