GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  VIEWHT (3)

[Include document man1/alc_contents.mac]

   viewht    viewht

NAME

viewht - displays a hash table contents

[Include document man1/alc_origin.1]

CONTENTS

Synopsys
Parameter
Description
Example
See Also

SYNOPSYS

#include "mut.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 "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);
}

SEE ALSO

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

[Include document man1/alc_bug_report.1]

Search for    or go to Top of page |  Section 3 |  Main Index


ASIM/LIP6 VIEWHT (3) October 1, 1997

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.