string-hash.c
unsigned long int Find_StrHash(StrHash table, char *str)
{
    unsigned long int index = Str_Hash(str, table->cap);
    unsigned long int hsh = index;
    unsigned long int i = 1;
    while (1)
    {
        if (strcmp(str, table->bkt_arr[index].str) == 0)
        {
            return index;
        }
        else if (!table->bkt_arr[index].visited)
        {
            return -1;
        }
        else
        {
            index = hsh + i * i;
            index = index % table->cap;
            i++;
        }
    }
}
//To find particular data inside the hash table.
To find particular data inside the hash table.
To find particular data inside the hash table .
unsigned long int Find_StrHash(StrHash table, char *str)
{
    unsigned long int index = Str_Hash(str, table->cap);
    unsigned long int hsh = index;
    unsigned long int i = 1;
    while (1)
    {
        if (strcmp(str, table->bkt_arr[index].str) == 0)
        {
            return index;
        }
        else if (!table->bkt_arr[index].visited)
        {
            return -1;
        }
        else
        {
            index = hsh + i * i;
            index = index % table->cap;
            i++;
        }
    }
}
unsigned long int Find_StrHash ( StrHash table , char * str ) { unsigned long int index = Str_Hash ( str , table -> cap ) ; unsigned long int hsh = index ; unsigned long int i = 1 ; while ( 1 ) { if ( strcmp ( str , table -> bkt_arr [ index ] . str ) == 0 ) { return index ; } else if ( ! table -> bkt_arr [ index ] . visited ) { return -1 ; } else { index = hsh + i * i ; index = index % table -> cap ; i ++ ; } } }
To find particular data inside the hash table.
To find particular data inside the hash table .