Original Post
Ok, I lied in the subject, this isn''t fun at all. Basically, I need to pass a string to a function and allow that function to modify the string. At the moment, this is what I have:
char *category;
memset( &category, 0, sizeof( category ) );
That is the string I need to pass and modify in the other function.
get_submitted_question( index, submit_filename, &category, etc etc.
That is the call to the function that needs to modify the string. (The function takes a char** as the param)
Then, in that function, whenever I try to modify the string by dereferencing it, for example:
strcpy((*category), "Category");
The program crashes with:
Unhandled exception at 0x004033eb in Quizbot.exe: 0xC0000005: Access violation writing location 0x00000000
Any ideas would be welcome.