| VIEWHT(3) | MBK HASH TABLE MANAGEMENT FUNCTIONS | VIEWHT(3) |
viewht - displays a hash table contents
See the file buster/alliance/alc_origin.1.en.gz.
#include "mut.h" void viewht(table, display) ht ∗table; char ∗(∗display)();
viewht() displays all items of table :
#include "mut.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);
}
mbk(1), addht(3), delht(3), addhtitem(3), gethtitem(3), sethtitem(3), delhtitem(3).
See the file buster/alliance/alc_bug_report.1.en.gz.
| October 1, 1997 | ASIM/LIP6 |