I have a project for a c 99 programming class that requires us to ask a user for a sentence and then take that sentence char-by-char and store each char individually in a linked list. We were told that we need to use getc() and a while loop to read through the sentence and store into the linked list.
So far I know that you need the while loop to go until getc encounters a " \n". Other than that I do not even know where to begin. I have not had a problem with this class other than this project.
Any help on an approach or other ways to do this would be very much appreciated.