getwd man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

getwd(3)							      getwd(3)

NAME
       getwd - Get current directory pathname

SYNOPSIS
       #include <unistd.h>

       char *getwd(
	       char *path_name );

LIBRARY
       Standard C Library (libc)

STANDARDS
       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       getwd():	 XPG4-UNIX

       Refer to the standards(5) reference page	 for  more  information	 about
       industry standards and associated tags.

PARAMETERS
       Points to the full pathname.

DESCRIPTION
       The  getwd()  function  determines the absolute pathname of the current
       directory, then copies that pathname into the array pointed to  by  the
       path_name parameter.

       The maximum pathname length, in characters, is set by the PATH_MAX def‐
       inition, as specified in the limits.h file.  If the length of the path‐
       name of the current directory is greater than (PATH_MAX + 1), including
       the null byte, getwd() fails and returns a null pointer.

RETURN VALUES
       Upon successful completion, a pointer to the absolute pathname  of  the
       current directory is returned. If an error occurs, the getwd() function
       returns a null pointer. and places a message in the  path_name  parame‐
       ter.

SEE ALSO
       Functions: getcwd(3)

       Standards: standards(5)

								      getwd(3)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net