Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getwd(3C) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

getwd(3C)  —  4 BSD

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. 

CX/UX Programmer’s Reference Manual

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