Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getwd(3) — 4D1 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     GETWD(3)                                                 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 as defined
          in <sys/param.h>. It is recommended that the -
          I/usr/include/bsd compiler control be supplied when
          compiling programs that call (3B) routines.  This library
          will be searched by the loader when the -lbsd flag is
          supplied.

     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.

     ORIGIN
          4.3 BSD


























     Page 1                                        (last mod. 8/20/87)



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