i have:
Code:
typedef struct Entry Entry, *EntryPtr;
as my type def.
my function is fully operational without the if statement, it's just when I add it I get an error.
@laserlight, when i declare it in my struct, isn't the null character already assigned to it? because i also have this code:
Code:
if(!(hash_table[j].string)){}
which checks if the position is empty and enters in the data if it is. so i assumed that if there is nothing but a null character in the string then
Code:
if(strcmp(hash_table[j].string, tag) == 0){}
is false if the tag ="dog" or something.
Is there any other method to see if the 2 strings are equal?