Doing "pwd" within a program

gnu%berkeley at sun.UUCP gnu%berkeley at sun.UUCP
Wed Oct 19 06:06:12 AEST 1983


From:  John Gilmore <sun!gnu at berkeley>

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.



More information about the Comp.unix mailing list