|
Libft
Custom implementation of core libc functions with additional utility helpers.
|
#include <stddef.h>
Functions | |
| size_t | hash_string (const char *key) |
| Default string hash function (djb2). | |
| size_t hash_string | ( | const char * | key | ) |
Default string hash function (djb2).
Computes a hash over the bytes of a NUL-terminated key. The returned value is reduced modulo the bucket count by the caller.
| key | NUL-terminated key to hash (borrowed). |
