Skip to content

Instantly share code, notes, and snippets.

@idkiller
Created December 13, 2019 08:23
Show Gist options
  • Save idkiller/a19fc88f11b20174caba6d3b681d5af6 to your computer and use it in GitHub Desktop.
Save idkiller/a19fc88f11b20174caba6d3b681d5af6 to your computer and use it in GitHub Desktop.
hashtestable
void pushToTable(struct Member *target;)
{
int key = target->code % 2000;
struct Member *here = NULL;
here = mTable[key];
if (here == NULL)
{
mTable[key] = target;
return;
}
while (here->next)
{
here = here->next;
}
here->next = target;
}
@jjoggoba
Copy link

if (here)
target->next = here;
mTable[key] = target;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment