I am trying to implement a hash table where each hashtable element is a pointer to a linked list of strings. Here is what my code looks like
#define MAX_DISTRICTS 31
#define MAX_CHARACTERS 25
struct node *next;
insertName(int key, char iname)
struct node *q,*r,*temp;
//rest of the code tries to insert the name in correct position in the list sorted lexicographicaly
I am getting lot of errors and started learning c just few days ago . I get this error:
passing arg 2 of `insertSchool' makes integer from pointer without a cast
and also some other errors.
What am I supposed to do now?How do I pass sname to the insertName method to insert it into the string?
Some one please help. Thanks.