aboutsummaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-03-08 10:06:15 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-03-08 10:06:15 +0100
commit161163fdaf2b58cf725457112e5ea79b1dba0fee (patch)
tree6a17d7164d4339a03e2103835f6b8c8d3a281eac /hash.c
parentRemove C vector library. (diff)
downloadcalp-161163fdaf2b58cf725457112e5ea79b1dba0fee.tar.gz
calp-161163fdaf2b58cf725457112e5ea79b1dba0fee.tar.xz
Remove C hash library.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c15
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;
-}