Ah I thought it would be something along those lines, I originally did all the allocating inside of main and only had the user_input function hold the scanf() code to input the string, but then decided to change it because I didn't know if that was the proper way to code. I'm redoing one of my old labs to use dynamic memory, so I don't know where I should be doing the allocating, inside the functions or inside of main?

Part A

In this file, create a new C function which can read in whole lines of input from the user of up to 126 characters in length, and store them in a character string passed-in as a function argument. Lines will be separated (only) by newline characters. Note that empty lines are valid entries as well. All other characters should be read and added into the string.

Create another new C file, as before, and in it write a new function that will use the previous function to read in up to 128 lines from the user until they enter the special line of a "." by itself, or until they enter a 128th line. These should be read into a 128x128 two-dimensional array passed in as a function argument.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Also, I'm an amateur when it comes to programming, so why can't you modify where a an argument passed pointer points to inside of a function?