- Engineering
- Computer Science
- im writing a main program in c for assignment that...
Question: im writing a main program in c for assignment that...
Question details
I'm writing a main program in C for assignment that adds, deletes, and searches within a linked list. The exit command is also used.
I want to use fgets to get user input, but I'm not sure how to implement it. Per assignment specifications, the linked list has to be implemented using dynamic memory with a command like malloc. How would I use fgets with dynamic memory? I've only ever used it with an array of a specified size.
Here's the main program parameters:
Here's my main program code:
Solution by an expert tutor
