Hey,

I'd recommend getcwd()

environment variables can be manipulated by the user..

$ echo $PWD
/home/mare
$ PWD=/foo
$ pwd
/home/mare
$ echo $PWD
/foo
 
Markus


On Fri, 4 Mar 2005 22:23:17 +0100 (CET), J. <[EMAIL PROTECTED]> wrote:
> Friday, March 04 22:18:42
> 
> Hello,
> 
> I have to remember the working directory and save it in my program so that
> I can return to it later..
> 
> Which one is better/safer and why ? The environment var's or the
> getcwd() function fam... ?
> 
> Thankx.. a lot..
> 
> J.
> 
> --
> http://www.rdrs.net/
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-c-programming" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to