Skip to content
New issue

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

hashtable_init description doesn't match function. #70

Open
StrikerMan780 opened this issue May 13, 2024 · 1 comment
Open

hashtable_init description doesn't match function. #70

StrikerMan780 opened this issue May 13, 2024 · 1 comment

Comments

@StrikerMan780
Copy link

The function declaration is

void hashtable_init( hashtable_t* table, int key_size, int item_size, int initial_capacity, void* memctx );

but the description says:

hashtable_init
--------------

    void hashtable_init( hashtable_t* table, int item_size, int initial_capacity, void* memctx )

Initialize a hashtable instance. `item_size` specifies the size, in bytes, of the data type holding a single item stored
in the table. `initial_capacity` is the number of items to allocate storage for initially - capacity will automatically
grow as needed, by reallocating memory.

So, I'm unsure what to do here.

@StrikerMan780
Copy link
Author

StrikerMan780 commented May 13, 2024

In fact, most of them don't match the description or example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant