SDFGETCWD(3SDF)

NAME
sdfgetcwd - return the current working directory as a canonic string

SYNOPSIS
 #include <sealib.h>
 STRING sdfgetcwd(void)

DESCRIPTION
The function sdfgetcwd() returns the name of the current working directory as a canonicstring. Depending on whether you are on a BSD system or not, sdfgetcwd() calls itself either getwd() or getcwd() and then converts the result to a canonicstring. Subsequent calls to sdfgetcwd() return pointers to the same memory location and do not cause any more calls to getwd() or getcwd() or cs().

RETURN VALUE
A successful call to sdfgetcwd() returns a pointer to the name of the current working directory. On failure it returns NIL.

AUTHOR
Paul Stravers, Delft University of Technology. E-mail address is ocean@donau.et.tudelft.nl.

SEE ALSO
cs(3SDF), getwd(3), getcwd(3).