Quote Originally Posted by qingxing2005 View Post
However, when I used the following statement i.e. fscanf_s(fp_t, "%s\n", temp), where temp is a string pointer, and initialized to be NULL. The debugger returns an "Access violation" error...
That's because pointers aren't storage units.
http://cpwiki.sourceforge.net/A_pointer_on_pointers