Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!sun!gnu@berkeley From: gnu%berkeley@sun.UUCP Newsgroups: net.unix Subject: Doing "pwd" within a program Message-ID: <12902@sri-arpa.UUCP> Date: Tue, 18-Oct-83 16:06:12 EDT Article-I.D.: sri-arpa.12902 Posted: Tue Oct 18 16:06:12 1983 Date-Received: Thu, 27-Oct-83 09:29:00 EDT Lines: 6 From: John Gilmore In 4.2BSD, the library routine "getwd" does this, without any hokum with pipes. It's probably portable to older systems if you have the directory compatability package (readdir, opendir, etc) which has been posted to net.sources several times.