Skip to content

Instantly share code, notes, and snippets.

@ayende
Created November 27, 2019 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayende/c6c449933b6aa3efd004aa8a0dc12787 to your computer and use it in GitHub Desktop.
Save ayende/c6c449933b6aa3efd004aa8a0dc12787 to your computer and use it in GitHub Desktop.
uint64_t k, v;
hash_iteration_state_t state;
hash_table_iterate_init(&ctx, &state);
while (hash_table_iterate_next(&state, &k, &v)) {
hash_table_put(&ctx, k, v + 1);
printf("%llu = %llu\n", k, v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment