Untitled

 avatar
unknown
c_cpp
2 years ago
281 B
2
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...