@node getwd, file system @findex getwd @subheading Syntax @example #include char *getwd(char *buffer); @end example @subheading Description Get the current directory and put it in @var{buffer}. The return value includes the drive specifier. @subheading Return Value @var{buffer} is returned. @subheading Portability @portability !ansi, !posix @subheading Example @example char buf[PATH_MAX]; getwd(buf); @end example