Created
December 13, 2019 08:23
-
-
Save idkiller/a19fc88f11b20174caba6d3b681d5af6 to your computer and use it in GitHub Desktop.
hashtestable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if (here)
target->next = here;
mTable[key] = target;