*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> getwd (3)              
Title
Content
Arch
Section
 

getwd(3)

Contents


NAME    [Toc]    [Back]

       getwd - Get current directory pathname

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       char *getwd(
               char *path_name );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       getwd():  XPG4-UNIX

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

PARAMETERS    [Toc]    [Back]

       Points to the full pathname.

DESCRIPTION    [Toc]    [Back]

       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 definition, as specified in  the  limits.h  file.
       If  the length of the pathname of the current directory is
       greater than (PATH_MAX +  1),  including  the  null  byte,
       getwd() fails and returns a null pointer.

RETURN VALUES    [Toc]    [Back]

       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 parameter.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: getcwd(3)

       Standards: standards(5)



                                                         getwd(3)
[ Back ]
 Similar pages
Name OS Title
getcwd Tru64 Get the pathname of the current directory
getwd IRIX get current working directory pathname
getcwd IRIX get pathname of current working directory
Cwd IRIX get pathname of current working directory
pwd Tru64 Displays the pathname of the current working directory
pxfgetcwd IRIX Gets the pathname of the working directory
getcwd OpenBSD get working directory pathname
getwd OpenBSD get working directory pathname
getcwd NetBSD get working directory pathname
getcwd FreeBSD get working directory pathname
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service