Pointer to pointer assignment? PLEASE HELP!!!
I am. Going. Freaking. Crazy. I searched all over for a solution, and cannot find one. Please don't harp on me if you can find one in like 30 seconds -- maybe I suck at search.
This is, plain and simply, what I want to do:
Mutate argv's elements (having been passed "char** argv") IN PLACE (no change of address)
I have an array of strings called saved_args (char** saved_args)
So, like,
saved_args[0] = "PUT IN ARGV[0]"
saved_args[1] = "PUT IN ARGV[1]"
argv[0] = "REPLACE"
argv[1] = "ME"
I tried using strcpy and kept getting segfault. I think I have the idea right (I have to COPY the string into the location), but I cannot figure out the syntax to do it.