User Profile
Collapse
-
Thank you for the clarification, but I'm still unsure of the meaning of the double star **. As well I'm not sure how i would malloc one of the members of the struct. If you or someone could show me an example of mallocing a struct that is declared the way mine is (with the **) I would greatly appreciate it. Thanks for your time -
malloc struct
Hi I'm having difficulties trying to malloc a struct this is what it looks like and how I'm approaching the problem.
...Code:struct Records { char * fname; char * lname; }; Records** g_Recs; //Array of pointers void fakefunc() { g_Recs = (struct StudentRecords **) malloc (sizeof(struct StudentRecord*)); g_Recs = (struct Records *) malloc (sizeof(struct
No activity results to display
Show More
Leave a comment: