Skip to content

Instantly share code, notes, and snippets.

View land-pack's full-sized avatar
🤒
Out sick

Frank AK land-pack

🤒
Out sick
View GitHub Profile
@land-pack
land-pack / hash.c
Created September 28, 2016 09:05 — forked from tonious/hash.c
A quick hashtable implementation in c.
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
struct entry_s {
char *key;
char *value;