This is a discussion on String overwrites every string in linked list within the C Programming forums, part of the General Programming Boards category; removed...
Last edited by SkidMarkz; 09-12-2008 at 09:10 AM. Reason: school assignment
Because this line:
does not, and never has, copied a string from one place to another. If you wish to copy a string from one place to another, you must use the string copy function strcpy.Code:new_node->make = make;