Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getwd(3C) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pwd(1)

pwd(1sh)

getwroot(3c)



GETWD(3C)               COMMAND REFERENCE               GETWD(3C)



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.

     If the current working directory is on another host, the
     current working hostname is prepended to the name preceded
     by two slashes (//).  For example, if the local host is home
     and the current working directory is /bin on the machine
     remote, the current working directory is //remote/bin.

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

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

     Maximum pathname length is MAXPATHLEN characters.

SEE ALSO
     pwd(1), pwd(1sh), and getwroot(3c).


























Printed 5/12/88                                                 1





































































%%index%%
na:288,98;
sy:386,478;
de:864,695;
di:1559,268;
ca:1827,265;
se:2092,183;
%%index%%000000000107

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