Table of Contents

Name

viewht - displays a hash table contents

Origin

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

Synopsys

#include mut315.h"
void viewht(table, display)
ht *table;
char *(*display)();

Parameter

table
Hash table to be viewed
display
Function to be used for displaying an item of the table This function needs a user supplied parameter, the pointer to the item.

Description

viewht() displays all items of table :

index
This is the entry index of the hash table
key
This pointer is the one given by the user. It is displayed using something like fprintf(stdout, %s\n", display(key));.
value
This is the value associated with the key. It is displayed as an int.

Example

#include mut315.h"
#include <stdio.h>
typedef struct of_fp {
char *name;
float f;
void *p;
} fp;
char *printout(s)
fp *s;
{ char t[BUFSIZ];
sprintf(t, name : `%s' :~~~: float value : `%.6f' <%#x>", s->name, s->f, s->p);
return t;
}
void displayall(h)
ht *h;
{
viewht(h, printout);
}

See Also

mbk(1) , addht(3) , delht(3) , addhtitem(3) , gethtitem(3) , sethtitem(3) , delhtitem(3) .

Bug Report

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.


Table of Contents

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 26 May 2000.