1GETABLEXPRNUMOCC(3)              ABL FUNCTIONS             GETABLEXPRNUMOCC(3)
2
3
4

NAME

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

SYNOPSIS

9       #include "abl101.h"
10       long getablexprnumocc( Expr, Name )
11         chain_list ∗Expr;
12         char       ∗Name;
13

PARAMETERS

15       Expr                Expression.
16
17       Name                Name to find.
18

DESCRIPTION

20       getablexprnumocc gives the number of occurrents of Name in Expr.
21

RETURN VALUE

23       getablexprnumocc returns number of occurrents of Name in Expr.
24

EXAMPLE

26       #include "abl101.h"
27         chain_list ∗Expr;
28         Expr = createablbinexpr( ABL_AND,
29                                  createablatom( "a" ),
30                                  createablatom( "b" ) );
31         /* displays 1 */
32         printf( "%d", getablexprnumocc( Expr, "a" ) );
33

SEE ALSO

35       abl(1)
36
37
38
39
40
41
42ASIM/LIP6                       October 1, 1997            GETABLEXPRNUMOCC(3)
Impressum