Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getwd(3C) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

GETWD(3C)  —  Silicon Graphics

NAME

getwd − get current working directory pathname

SYNOPSIS

char *getwd(pathname)
char *pathname;

DESCRIPTION

Getwd copies the absolute pathname of the current working directory to pathname and returns a pointer to the result. 

LIMITATIONS

Maximum pathname length is MAXPATHLEN characters (1024). 

DIAGNOSTICS

Getwd returns zero and places a message in pathname if an error occurs. 

BUGS

Getwd may fail to return to the current directory if an error occurs. 

Version 3.6  —  December 20, 1987

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