GETABLEXPRNUMATOM(3) ABL FUNCTIONS GETABLEXPRNUMATOM(3)NAME
getablexprnumatom - gives the number of atom in an expression.
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "abl101.h"
long getablexprnumatom( Expr )
chain_list *Expr;
PARAMETERS
Expr Expression.
DESCRIPTION
getablexprnumatom gives the number of atom in Expr.
RETURN VALUE
getablexprnumatom returns the number of atom in Expr.
EXAMPLE
#include "abl101.h"
chain_list *Expr;
Expr = createablbinexpr( ABL_AND,
createablatom( "'0'" ),
createablatom( "'1'" ) );
/* displays 2 */
printf( "%d", getablexprnumatom( Expr ) );
SEE ALSO abl(1)BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 GETABLEXPRNUMATOM(3)
Check Out this Related Man Page
GETABLEXPRNUMOCC(3) ABL FUNCTIONS GETABLEXPRNUMOCC(3)NAME
getablexprnumocc - how many times a name appears in an expression.
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
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)BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 GETABLEXPRNUMOCC(3)
Hi all,
Please help me solve below issue.
expr 04170000000 + 1 gives me -124967295 and offcourse I want this to be 04170000001
and it happens for some sort of number like some other
02300000000
02600000000
03800000000
I guess after exceeding certain range it is converting it somewhere... (2 Replies)
I have two variables that are set by a number i.e.
recs_on_db=12
yesterdays_recs_on_db=10
i need to get the difference between the two and be able to set this in a variable
I have tried expr but does not work:
db_difference=`expr $recs_on_db - $yesterdays_recs_on_db`
i get:
expr:... (2 Replies)
Hello, I am new to the Bash scripting language, and was given a tutorial page on how to setup a file. However I am trying to use cygwin to run this file and it is not working.
$ vi averagetime.sh
#
#
#
echo "Enter Dictorinary File Text "
read dict
echo "Enter Grid Name"
read grid... (13 Replies)
Hello, I am new to Shell programing.
I want to add two numbers & show result. command I use are as under
Echo Enter the two numbers
read number
d1 = ` expr $ num%10`
num = `expr $ num/10`
d2 = ` expr $ num%10`
num = `expr $ num/10`
sum = $ d1 + $ d2
echo the sum is $ sum
I am getting... (1 Reply)