Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1.  p = ht->table[k];
  2.  
  3.     if (p == NULL) {
  4.  
  5.    
  6.         /* ht->table[k] = malloc(sizeof(HTentry)); */
  7.         p = malloc(sizeof(HTentry));
  8.  
  9.         /* ht->table[k]->key = key; */
  10.         p->key = key;
  11.  
  12.         /* ht>table[k]->value = value; */
  13.         p->value = value;
  14.  
  15.         /* ht->table[k]->next_ptr = NULL; */
  16.         p->next_ptr = NULL;
  17.  
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement