hash.h revision 58551
1// This may look like C code, but it is really -*- C++ -*-
2
3/*
4Copyright (C) 1988, 1992 Free Software Foundation
5    written by Doug Lea (dl@rocky.oswego.edu)
6
7This file is part of the GNU C++ Library.  This library is free
8software; you can redistribute it and/or modify it under the terms of
9the GNU Library General Public License as published by the Free
10Software Foundation; either version 2 of the License, or (at your
11option) any later version.  This library is distributed in the hope
12that it will be useful, but WITHOUT ANY WARRANTY; without even the
13implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14PURPOSE.  See the GNU Library General Public License for more details.
15You should have received a copy of the GNU Library General Public
16License along with this library; if not, write to the Free Software
17Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18*/
19
20#ifndef _hash_h
21#define _hash_h 1
22
23/* a hash function for null-terminated char* strings using the
24   method described in Aho, Sethi, & Ullman, p 436. */
25extern unsigned int hashpjw (const char*);
26
27#endif
28