I was wondering if someone could please help me out. I am a newbie
to the world of "C" and I have been having some difficulty with
something I have been trying to do. I am just starting to learn
about pointers and passing to/from functions.
What I am trying to accomplish is the following.
I have a function that reads input from the user and asks for a file
path and name. I then check to see if it exists and if so I return
the FILE pointer. Everything is working just fine. However I would
like to also be able to return to my main() function the path that
the user entered. I have used a char array for the path_name input
and have not figured out a way to pass that back using pointers to
Any suggestions would be helpful.
Thanks in advance!