unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.2BSD)
Page:
Section:
Apropos / Subsearch:
optional field

GETWD(3)                   Library Functions Manual                   GETWD(3)



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.



4th Berkeley Distribution      25 February 1983                       GETWD(3)