henry@utzoo.UUCP (Henry Spencer) (07/05/84)
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!henryhenry@utzoo.UUCP (Henry Spencer) (08/22/84)
The getwd(3) routine has been revised to avoid using the shell to invoke
pwd(1). This lets it pick up /bin/pwd regardless of "smart" shell code
that tries to do pwd as a built-in function.
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,linus,decvax}!utzoo!henry