From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J." Subject: Re: should I use, getcwd() or *environ ? Date: Sat, 5 Mar 2005 13:55:04 +0100 (CET) Message-ID: References: <6a00c8d505030503121038ff83@mail.gmail.com> Reply-To: linux-c-programming@vger.kernel.org Mime-Version: 1.0 In-Reply-To: <6a00c8d505030503121038ff83@mail.gmail.com> Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org On Sat, 5 Mar 2005, Steve Graegert wrote: > On Fri, 4 Mar 2005 22:23:17 +0100 (CET), J. 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... ? > > I usually take the following approach: ..... > Hope this helps. > > -- > Kind Regards > \Steve Saturday, March 05 Okidoki, thnkx for the answers & examples, all... J.