getablexprlength.3alc - Man Page

gives the length of an expression.

Synopsis

#include "abl101.h"
long getablexprlength( Expr )
  chain_list ∗Expr;

Parameters

Expr

Expression.

Description

getablexprlength gives the length of an expression.

Return Value

getablexprlength returns the length of Expr.

Example

#include "abl101.h"
   chain_list ∗ExprA;
   chain_list ∗ExprB;
   chain_list ∗ExprAorB;
   ExprA = createablatom( "a" );
   ExprB = createablatom( "b" );
   ExprAorB  = createablbinexpr( ABL_OR, ExprA, ExprB );
   /* displays 2 */
   printf( "%d", getablexprlength( ExprAorB ) );

See Also

abl(1)

Info

October 1, 1997 ASIM/LIP6 ABL FUNCTIONS