Query: getwd
OS: bsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETWD(3) Library Functions Manual GETWD(3)NAMEgetwd - get current working directory pathnameSYNOPSISchar *getwd(pathname) char *pathname;DESCRIPTIONGetwd copies the absolute pathname of the current working directory to pathname and returns a pointer to the result.LIMITATIONSMaximum pathname length is MAXPATHLEN characters (1024), as defined in <sys/param.h>.DIAGNOSTICSGetwd returns zero and places a message in pathname if an error occurs. 4.2 Berkeley Distribution May 12, 1986 GETWD(3)