Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: hacknews Subject: getwd(3) arrives Message-ID: <4026@utzoo.UUCP> Date: Wed, 4-Jul-84 17:12:17 EDT Article-I.D.: utzoo.4026 Posted: Wed Jul 4 17:12:17 1984 Date-Received: Wed, 4-Jul-84 17:12:17 EDT Organization: U of Toronto Zoology Lines: 8 New utility routine in the C library: getwd(3). The subroutine equivalent of pwd(1) (in fact, it invokes pwd if it gets desperate). See getwd(3) manual page for details. This is the preferred way to find out what directory a program is in. Note that it needs the -lndir compilation option, to pick up the directory(3) routines. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry