searchauth2elem - searches an element in the hash table.
This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at
ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie
4, place Jussieu
75252 PARIS Cedex 05
FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr
#include aut101.h"
auth2elem *searchauth2elem( HashTable, Key1, Key2 )
auth2table *HashTable;
searchauth2elem searches the element associated to the two keys Key1 and Key2 in the hash table.
if the element can be found searchauth2elem returns a pointer to this element and a null pointer otherwise.
auth2ash: hash key 0 error !"
The two keys Key1 and Key2 must be valid pointers.
#include aut101.h"
auth2table *HashTable;
void add_dictionary( Name1, Name2 )
* Name1;
* Name2;
{
addauth2elem( HashTable,
namealloc( Name1 ),
namealloc( Name2 ), 0 );
}
int search_dictionary( Name1, Name2 )
* Name1;
* Name2;
{
auth2elem *HashElement;
HashElement = searchauth2elem( HashTable,
namealloc( Name1 ),
namealloc( Name2 ) );
return( HashElement != (auth2elem *0) );
}
...
HashTable = createauth2table( 1000 );
add_dictionary( hello", world );
...
if ( search_dictionary( hello", world ) )
...
destroyauth2table( HashTable );
aut(1) destroyauth2table(3) , resetauth2table(3) , createauth2table(3) , addhauth2elem(3) , delauth2elem(3) .
This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi
research team.
We need your feedbak to improve documentation and tools.
If you find bugs, please fill-in the form at
http://asim.lip6.fr/alliance/support/bug-report/
Thanks for doing this.