|
|||
Linux TAC command
On Unix-like operating systems, the Input SpecificationThe input is an ASCII text without any restrictions. Sample Input
Output Specification
Output for Sample Input
Hints and GuideBecause of the length of input line was not specified, the best solution is to create a linked list to store the characters of the current line. Instead of reading individual characters, we recommend to use a buffer filled with the help of the fgets function.
Printing the output in reverse order, line by line, can be easily done with recursion. One possible solution is available in: main.c.
Acknowledgement
This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |