Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

getwd(3)

Name

getwd − get current working directory pathname

Syntax

char *getwd(pathname)
char *pathname;

Description

The getwd subroutine copies the absolute pathname of the current working directory to pathname and returns a pointer to the result. 

Restrictions

The getwd subroutine may fail to return to the current directory if an error occurs.

Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>. 

Return Values

The getwd subroutine returns zero and places a message in pathname if an error occurs. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026