GETWD(3C) GETWD(3C) NAME getwd - get current working directory pathname SYNOPSIS #include <unistd.h> char *getwd(char *pathname); DESCRIPTION getwd copies the absolute pathname of the current working directory to pathname and returns a pointer to the result. LIMITATIONS Maximum pathname length is PATH_MAX characters as defined in <limits.h>. PATH_MAX is equivalent to MAXPATHLEN as defined in <sys/param.h>. DIAGNOSTICS getwd returns zero and places a message in pathname if an error occurs. Page 1[top]
Vote for polarhome |