Untitled
Anonymous
c_cpp
04/06/2023 9:13 AM
376 B
16
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...