Untitled
unknown
c_cpp
3 years ago
281 B
9
Indexable
Hashtable *newHashtable()
{
Hashtable *myHash = malloc(sizeof(Hashtable));
myHash->table = (Element**)malloc (sizeof(Element*) * TABLE_SIZE);
for ( int i=0; i<TABLE_SIZE; i++){
myHash->table[i] = NULL;
}
myHash->length = 0;
return myHash;
}Editor is loading...