Search:

Type: Posts; User: Adak

Search: Search took 0.15 seconds.

  1. Replies
    6
    Views
    2,435

    You want to enter the data into a temp static...

    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...
  2. Replies
    6
    Views
    2,435

    Too late for more, (bed time), but a few...

    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.
    ...
  3. Replies
    6
    Views
    2,435

    Welcome to the forum, Charlyboo! What I'd do...

    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...
Results 1 to 3 of 3