Sorry....![]()
codice:#include "lcshash.h" //nome file prototipi #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXL 256 hashElement_t* getHash(hashTable_t* ht, const char* s){ int trovato=0; hashElement_t* e=ht->table[hashFunction(s,ht)]; while(trovato==0 && e!=NULL){ if (strcmp(s,e->key) == 0) trovato=1; else e=e->next; } if (trovato==0)return NULL; else return e; }