hash set C implementation
C Makefile
Latest commit 685bb4b Dec 14, 2015 @avsej Merge pull request #5 from MartinMSPedersen/master
reformat target in Makefile was missing in the list of PHONY targets.

README.markdown

hashset.c

The hash set implementation in C.

Example

#include "hashset.h"

char *foo = "foo";
char *missing = "missing";
hashset_t set = hashset_create();

if (set == NULL) {
    fprintf(stderr, "failed to create hashset instance\n");
    abort();
}

hashset_add(set, foo);
assert(hashset_is_member(set, foo) == 1);
assert(hashset_is_member(set, missing) == 0);