Ok so I have the below code and I am just pulling various things from a file and inputing them in an array of structs, it \"seemingly\" works initially, BUT when I go to pri
The error is here.
d[counter].name=name;
replace with:
d[counter].name = strdup(name); /*don't forget to free this memory.*/
the issue for the courses is the same.