I think the first string was red by your program and your pointer
has not allocated the proper memory for it, so printing the result
(with your pointer) will print your string and a lot of mess...
Type: Posts; User: ritter_kobbe
I think the first string was red by your program and your pointer
has not allocated the proper memory for it, so printing the result
(with your pointer) will print your string and a lot of mess...
in stdlib.h there is a function called getenv() which
can get some environment variables ...
I suggest to read the man pages of this function.
Otherwise, try the system() function ...