I have a struct of words:
typedef struct {
char *word;
unsigned long occurrences;
} Word;
and I want to malloc an array of these but I don't know how large the size will be. Is there a way to malloc an array of structs without knowing the size of the array beforehand?
Thanks.