X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fhash-pjw.h;h=5847a25280cf58d7f3569079a2e16c816f93e01d;hb=cbb86267fda18ba3e409e16cf9c460cbbed1846c;hp=b2a09949439c3eb99639f652d08838c30771c2fe;hpb=c31c5f30e8606260d4963b96a97b7dbce7607b67;p=gnulib.git diff --git a/lib/hash-pjw.h b/lib/hash-pjw.h index b2a099494..5847a2528 100644 --- a/lib/hash-pjw.h +++ b/lib/hash-pjw.h @@ -18,4 +18,8 @@ #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);