From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J." Subject: should I use, getcwd() or *environ ? Date: Fri, 4 Mar 2005 22:23:17 +0100 (CET) Message-ID: Reply-To: linux-c-programming@vger.kernel.org Mime-Version: 1.0 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 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/