All pastes #395798 Raw Edit

Something

public text v1 · immutable
·published 2007-03-15 08:50 UTC
rendered paste body
void put_hashset (hashset_ref hash, hashset_key_t key) {
   hashcode_t hashnum = strhash(key) % hash->header_dim;
   if (has_hashset(hashnum, key)== FALSE){
      hashnode_ref newnode = malloc (sizeof (struct hashnode));
      hashnode_ref temp =  header[hashcode]
      char* duped = strdup(key);
      temp = hash->headers[hashcode]; 
      hash->headers[hashcode] = newnode; 
      newnode->link = temp;
   }
   //printf ("put_hashset (0x%p, %s)", hash, key);
}