I used fgets to store strings into the data of my nodes.
My problem is that fgets also stores the new line character into my node's data.
I want to print the string to get this:
The line: "My first node's line" has been deleted.
The compiler cant work with the doubling up of ""Code:printf("\nThe line: "%s" has been deleted.", nodeToDelete->data);
Even though I need to print the "", I tried:
And it prints:Code:printf("\nThe line: %s has been deleted.", nodeToDelete->data);
Which is not what I want at all!Code:The line: My first node's line has been deleted