I found this out much too late...
int main(int argc, char* argv[])
{
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);
printf("%d\n", hashset_is_member(set, foo));
printf("%d\n", hashset_is_member(set, _strdup(foo));
}
I found this out much too late...
This will print
1
0