#include size_t hash(const char *key) { size_t i = 0; size_t hash = 0; for (i = 0; key[i] != '\0'; ++i) hash += key[i]; hash += i; return hash; }