Hey I'm having trouble with some void pointers, I'm really pretty unclear on their usage. If some one could provide me with an explanation of them and how to use them, I would be mighty appreciative. Here is the function header for the function that uses the void*.
wordList* antonym(char* word, void* thesaurus)
The structures the I am using for this program are:
typedef struct wordListItem {
char* word;
struct wordListItem* next;
} wordList;
typedef struct tableItem
{
char* Keyword;
tableItem* next;
wordList* Syn;
wordList* Ant;
} tableEntry;
struct Hashtable
{
int size;
int count;
tableItem* Array;
}Hash;
Thesaurus will point to tHash which will point to an array of dynamically allocated tableItems, which have members wordlist* Syn and Ant. I want to return pointers to the Syn or Ant linked lists. Thanks!