changeset 4832:82b23fb351ab

Add comment.
author Bruno Haible <bruno@clisp.org>
date Thu, 30 Oct 2003 13:52:10 +0000
parents ee1500bc3777
children d12cca839b2d
files lib/hash-pjw.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);