X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fhash-pjw.h;h=44b5440ac26df943e9ca9418e1ca167a6153bd6d;hb=a897449aaae8e6c051f3b9daaf984de5c5e092f3;hp=b2a09949439c3eb99639f652d08838c30771c2fe;hpb=c31c5f30e8606260d4963b96a97b7dbce7607b67;p=gnulib.git diff --git a/lib/hash-pjw.h b/lib/hash-pjw.h index b2a099494..44b5440ac 100644 --- a/lib/hash-pjw.h +++ b/lib/hash-pjw.h @@ -14,8 +14,12 @@ You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include -size_t hash_pjw (void const *x, size_t tablesize); +/* Compute a hash code for a NUL-terminated string starting at X, + and return the hash code modulo TABLESIZE. + The result is platform dependent: it depends on the size of the 'size_t' + type and on the signedness of the 'char' type. */ +extern size_t hash_pjw (void const *x, size_t tablesize);