codice:
hashTable_t * createHash( int sizeH )
{
if( sizeH <= 0 )
return NULL;
hashTable_t *ht;
....
...
un errore del genere lo da proprio sulla dichiarazione di quel puntatore, la struttura e' questa:
codice:
typedef int typevalue_t;
/* tipo elemento della hash table */
typedef struct hashE{
char * key; /* chiave NULL se elemento vuoto*/
typevalue_t value; /* valore associato a key */
struct hashE * next;
} hashElement_t;
/* tipo della tabella hash (un array di puntatori a hashElement_t) */
typedef struct {
int size; /* ampiezza tabella */
hashElement_t ** table;
} hashTable_t;