Doing "pwd" within a program

dbj.rice%rand-relay at sri-unix.UUCP dbj.rice%rand-relay at sri-unix.UUCP
Tue Oct 25 03:16:19 AEST 1983


From:  Dave Johnson <dbj.rice at rand-relay>

You don't need to port the "getwd" routine from 4.2bsd to 4.1 - it was there
before 4.2 existed.  The routine takes a (char *) address of a buffer to put
the result in.  Just link your program with the "-ljobs" flag to ld.

                                        Dave Johnson
                                        Dept. of Math Science
                                        Rice University
                                        dbj.rice at Rand-Relay



More information about the Comp.unix mailing list