Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
hash set C implementation
branch: master

Merge pull request #2 from rjenkins/master

adding support for hashset_itr
latest commit 9b9e2cdf49
Sergey Avseyev authored

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);
Something went wrong with that request. Please try again.