From 81a435207adabc6d8e4211728cdb55d17bd63a61 Mon Sep 17 00:00:00 2001 From: jwerle Date: Tue, 31 Dec 2024 13:48:07 -0500 Subject: chore(): clean up --- example.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'example.c') diff --git a/example.c b/example.c index e8a840c..b5da670 100644 --- a/example.c +++ b/example.c @@ -1,13 +1,18 @@ +/** + * `example.c' - murmurhash + * + * copyright (c) 2014-2025 joseph werle + */ #include #include #include -#include -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 +#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; +} -- cgit v1.2.3