I tried:
printf("my_envp is now: %s\n", &my_envp[4]);
to see what you were talking about and my output was: Ø`¨¸Ðð(P¨ÀÐè²
I'm obviously not getting the logic behind it. Could you...
Type: Posts; User: cagney58
I tried:
printf("my_envp is now: %s\n", &my_envp[4]);
to see what you were talking about and my output was: Ø`¨¸Ðð(P¨ÀÐè²
I'm obviously not getting the logic behind it. Could you...
I'm trying to cut the first 4 chars (PWD=) of the environment variable, my_envp[0], which in this instance is "PWD=/home/usrnm/cprgms/project"
This is my attempt:
char pwd[] = "PWD=";...