This program takes the input data by the terminal, and if it ends with a slash it will continue taking the data. Thus, it accepts data with multiple lines in a single variable allocated in the heap memory.
This program was created to answer a question on StackOverflow. Click here to access the question.