Question: Write a C program called myupper4.c to take as command line input a file name. It should then read the text file, and tokenize the
Write a C program called myupper4.c to take as command line input a file name. It should then read the text file, and tokenize the file i.e., extract one string at a time and store in a linked list each string.
Each new string read from the file should be inserted at the END of the linked list. Each node of the linked list should contain 2 variables: i) a character array to hold a string, ii) a pointer to the next node in the linked list.
The myupper4.c file should also contain a function void print_linked_list(struct *node) to iterate over the linked list and print the strings stored in each node of the linked list. Again use dynamic memory allocation for strings, and the function prototype for print_linked_list should not be changed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
