You want to enter the data into a temp static variable and then assign it/strcpy() it over to the new node's struct member, right?
What you get from malloc, if it's making memory for another node...
Type: Posts; User: Adak
You want to enter the data into a temp static variable and then assign it/strcpy() it over to the new node's struct member, right?
What you get from malloc, if it's making memory for another node...
Too late for more, (bed time), but a few suggestions:
1) don't cast the pointer returned by malloc().
2) You create a teamName array in main. Then you malloc memory for it in register_team.
...
Welcome to the forum, Charlyboo!
What I'd do is start with the inner struct "name_data" prototype first. Then do the outer struct "info". Do these, above the main() function.
Then create the...