Referencing pointers after a fork() call in C
问题 So, I've got a function that loads up a char** variable with some string data. My goal is to fork the process, and print some of that data in the child, and some from the parent. However, I'm unable to reference the pointer after the fork() call. I thought that fork() made a copy of the entire address space of the parent process, which seems that it would include the various stack pointers... Essentially, my code currently looks like this: load_data(char **data); char** data; load_data(data);