|
NAMEgetwd - get current directorySYNOPSIS#include <u.h>#include <libc.h> char* getwd(char *buf, int size) DESCRIPTIONGetwd fills buf with a null-terminated string representing the current directory and returns buf.Getwd places no more than size bytes in the buffer provided. SOURCE/src/lib9/getwd.cSEE ALSODIAGNOSTICSOn error, zero is returned. may be consulted for more information.BUGSTo avoid name conflicts with the underlying system, getwd is a preprocessor macro defined as p9getwd; see Visit the GSP FreeBSD Man Page Interface. |