hash.h revision 58551
158551Skris// This may look like C code, but it is really -*- C++ -*- 258551Skris 358551Skris/* 458551SkrisCopyright (C) 1988, 1992 Free Software Foundation 558551Skris written by Doug Lea (dl@rocky.oswego.edu) 658551Skris 758551SkrisThis file is part of the GNU C++ Library. This library is free 858551Skrissoftware; you can redistribute it and/or modify it under the terms of 958551Skristhe GNU Library General Public License as published by the Free 1058551SkrisSoftware Foundation; either version 2 of the License, or (at your 1158551Skrisoption) any later version. This library is distributed in the hope 1258551Skristhat it will be useful, but WITHOUT ANY WARRANTY; without even the 1358551Skrisimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 1458551SkrisPURPOSE. See the GNU Library General Public License for more details. 1558551SkrisYou should have received a copy of the GNU Library General Public 1658551SkrisLicense along with this library; if not, write to the Free Software 1758551SkrisFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 1858551Skris*/ 1958551Skris 2058551Skris#ifndef _hash_h 2158551Skris#define _hash_h 1 2258551Skris 2358551Skris/* a hash function for null-terminated char* strings using the 2458551Skris method described in Aho, Sethi, & Ullman, p 436. */ 2558551Skrisextern unsigned int hashpjw (const char*); 2658551Skris 2758551Skris#endif 28