SHARE
TWEET

Untitled

a guest Jan 25th, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void del(char* key)
  2. {
  3.     unsigned int index = hashFunc(key) % SIZE;
  4.     if (mas[index] == NULL)
  5.         return;
  6.     element** temp = mas + index;
  7.     element* ntp;
  8.     while ((*temp) != NULL)
  9.     {
  10.         if (strcmp((*temp)->key, key) == 0)
  11.         {
  12.             ntp = *temp;
  13.             *temp = (*temp)->next;
  14.             free(ntp);
  15.             return;
  16.         }
  17.         *temp = (*temp)->next;
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top