GETWD
Section: C Library Functions (3)
Updated: May 12, 1986
Index
Return to Main Contents
NAME
getwd - (BSD) get current working directory pathname
SYNOPSIS
char *getwd(char *pathname);
DESCRIPTION
Getwd
is a BSD function.
POSIX provides this functionality with the
getcwd(3P)
function.
Getwd
copies the absolute pathname of the current working directory to
pathname
and returns a pointer to the result.
LIMITATIONS
Maximum pathname length is MAXPATHLEN characters (1024),
as defined in
<sys/param.h>.
DIAGNOSTICS
Getwd
returns zero and places a message in
pathname
if an error occurs.
SEE ALSO
chdir(2), getcwd(3P)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- LIMITATIONS
-
- DIAGNOSTICS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 00:57:06 GMT, September 26, 2024