GETWD(2) GETWD(2) NAME getwd - get current directory SYNOPSIS char* getwd(char *buf, int size) DESCRIPTION Getwd will fill buf with a null-terminated string represent- ing the current directory and return buf. Getwd will place no more than size bytes in the buffer pro- vided. SEE ALSO pwd(1) DIAGNOSTICS On error, zero is returned and buf is filled with a diagnos- tic message. Errstr(2) may be consulted for more informa- tion. Page 1 Plan 9 (printed 12/21/24)