unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

GETWD(3)                   Library Functions Manual                   GETWD(3)



NAME
       getwd - get current working directory pathname

SYNOPSIS
       #include <&lt;sys/param.h>&gt;

       char *getwd(pathname)
       char pathname[MAXPATHLEN];

DESCRIPTION
       getwd()  copies  the absolute pathname of the current working directory
       to pathname and returns a pointer to the result.

DIAGNOSTICS
       getwd() returns zero and places a  message  in  pathname  if  an  error
       occurs.



                                18 January 1988                       GETWD(3)