diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-08 10:06:15 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-08 10:06:15 +0100 |
commit | 161163fdaf2b58cf725457112e5ea79b1dba0fee (patch) | |
tree | 6a17d7164d4339a03e2103835f6b8c8d3a281eac /hash.c | |
parent | Remove C vector library. (diff) | |
download | calp-161163fdaf2b58cf725457112e5ea79b1dba0fee.tar.gz calp-161163fdaf2b58cf725457112e5ea79b1dba0fee.tar.xz |
Remove C hash library.
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/hash.c b/hash.c deleted file mode 100644 index 47775b59..00000000 --- a/hash.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "hash.h" - -/* - * http://www.cse.yorku.ca/~oz/hash.html - * djb2 from above url. - */ -unsigned long hash(char* str) { - unsigned long hash = 5381; - int c; - - while ( (c = *str++) ) - hash = ((hash << 5) + hash) + c; - - return hash; -} |