summaryrefslogtreecommitdiff
path: root/lib/hash-pjw.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-31 14:00:18 +0000
committerJim Meyering <jim@meyering.net>2003-10-31 14:00:18 +0000
commitf7f606641f373b3af829cef22d8d25549176d7e4 (patch)
treea65c86383abf39667376cc08b5cfa67770062f1f /lib/hash-pjw.h
parent7291dc2b9d626197ee52ead46667a7523f477b68 (diff)
downloadcoreutils-f7f606641f373b3af829cef22d8d25549176d7e4.tar.xz
Update from gnulib.
Diffstat (limited to 'lib/hash-pjw.h')
-rw-r--r--lib/hash-pjw.h6
1 files changed, 5 insertions, 1 deletions
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 <stddef.h>
-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);