Go to the first, previous, next, last section, table of contents.


getwd

Syntax

#include <unistd.h>

char *getwd(char *buffer);

Description

Get the current directory and put it in buffer. The return value includes the drive specifier.

Return Value

buffer is returned.

Portability

not ANSI, not POSIX

Example

char buf[PATH_MAX];
getwd(buf);


Go to the first, previous, next, last section, table of contents.