I then want to save this sting into a .csv file. I have the code in that does that (it works when I have it in the same function) but I want a seperate function that saves (I have a menu so the user can answer the questions but it'll only write to the .csv file once you enter the 'save' option)
I had my function like
savedata( char *fullstring)//string I use in other function storing the info
but when I type in the data then go the the save option on my menu I get a segment fault when doing it.
Am I suppose to do something to the function I am using to get the userinput to allow my other function to access the fullstring value?


Sign In
Create Account

Back to top









