diff options
author | jwerle <joseph.werle@gmail.com> | 2024-12-31 13:47:05 -0500 |
---|---|---|
committer | jwerle <joseph.werle@gmail.com> | 2024-12-31 13:47:14 -0500 |
commit | 81259bbb334cb884dedf607d4432d301763f6dc2 (patch) | |
tree | 6c7b93ed38dad61604d0333046ce28ac55a2422e /example.c | |
parent | 4d59092665f7fd4043f95606ccd502af11c62708 (diff) |
chore(.gitignore): ignore binaries
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/example.c b/example.c new file mode 100644 index 0000000..e8a840c --- /dev/null +++ b/example.c @@ -0,0 +1,13 @@ +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <murmurhash.h> + +int main(void) +{ + uint32_t seed = 0; + const char *key = "kinkajou"; // // 0xb6d99cf8 + uint32_t hash = murmurhash(key, (uint32_t)strlen(key), seed); + printf("murmurhash(%s) = 0x%x\n", key, hash); + return 0; +}
\ No newline at end of file |