summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorjwerle <joseph.werle@gmail.com>2024-12-31 13:48:07 -0500
committerjwerle <joseph.werle@gmail.com>2024-12-31 13:48:07 -0500
commit81a435207adabc6d8e4211728cdb55d17bd63a61 (patch)
treeb5af768ec7ade69abf31495688933b59e7212036 /example.c
parenta15164f747e51484360a01b404531fe51c2e5b7a (diff)
chore(): clean up
Diffstat (limited to 'example.c')
-rw-r--r--example.c23
1 files changed, 14 insertions, 9 deletions
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 <joseph.werle@gmail.com>
+ */
#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
+#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;
+}