Plan 9 - man page for getwd (plan9 section 2)
|Linux & Unix Commands - Search Man Pages
getwd - get current directory
char* getwd(char *buf, int size)
Getwd fills buf with a null-terminated string representing the current directory and
Getwd places no more than size bytes in the buffer provided.
On error, zero is returned and buf is filled with a diagnostic message. Errstr(2) may be
consulted for more information.
Because mounts and binds (see bind(2)) may produce multiple names for a directory, getwd
might not return the path by which the directory was reached.
All times are GMT -4. The time now is 07:46 PM.