Next Previous Contents

39. getcwd

Synopsis

Get the current working directory

Usage

String_Type getcwd ()

Description

The getcwd function returns the absolute pathname of the current working directory. If an error occurs or it cannot determine the working directory, it returns NULL and sets errno accordingly.

Notes

Under Unix, OS/2, and MSDOS, the pathname returned by this function includes the trailing slash character. Some versions also include the drive specifier.

See Also

mkdir, chdir, errno


Next Previous Contents