sysv equivilant to getwd()

Thomas J. Pusateri pusateri at romeo.cs.duke.edu
Tue Jul 18 06:10:24 AEST 1989


I am in need of getting the full pathname of the current working directory.
In SUN OS (BSD) there is a call getwd() that when passed a buffer, returns
that buffer with the current directory. Is there a work around for
SYSTEM V? Is the PWD environment variable standard on all SYSTEM V machines
under bourne shell and korn shell? Could I just do a getenv() on PWD?

Thanks for any info.

Tom Pusateri

National Biomedical Simulation Resource
Duke University Medical Center

pusateri at nbsr.mc.duke.edu



More information about the Comp.sys.att mailing list