source: trunk/athena/lib/Xj/hash.h @ 12350

Revision 12350, 624 bytes checked in by ghudson, 26 years ago (diff)
Some RCS ID cleanup: delete $Log$ and replace other RCS keywords with $Id$.
Line 
1/*
2 * $Id: hash.h,v 1.2 1999-01-22 23:17:08 ghudson Exp $
3 *
4 * Copyright 1990, 1991 by the Massachusetts Institute of Technology.
5 *
6 * For copying and distribution information, please see the file
7 * <mit-copyright.h>.
8 *
9 */
10
11#ifndef _hash_h
12#define _hash_h
13
14#include <sys/types.h>
15
16/* Hash table declarations */
17
18struct bucket {
19    struct bucket *next;
20    int key;
21    caddr_t data;
22};
23
24struct hash {
25    int size;
26    struct bucket **data;
27};
28
29#define HASHSIZE 67
30
31extern struct hash *create_hash();
32extern caddr_t hash_lookup();
33extern int hash_store();
34extern caddr_t hash_give_any_value();
35
36#endif /* _hash_h */
Note: See TracBrowser for help on using the repository browser.