We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)); }
This will print 1 0
The text was updated successfully, but these errors were encountered:
The red flag here should have been that you weren't asked to provide your own hash function. That means it can only possibly be hashing the pointer.
Sorry, something went wrong.
No branches or pull requests
I found this out much too late...
This will print
1
0
The text was updated successfully, but these errors were encountered: