GETCWD.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. GETCWD(3)                 Minix Programmer's Manual                  GETCWD(3)
  2. NAME
  3.      getcwd - get current working directory pathname
  4. SYNOPSIS
  5.      #include <unistd.h>
  6.      char *getcwd(char *pathname, size_t len)
  7. DESCRIPTION
  8.      Getcwd copies the absolute pathname of the current working  directory  to
  9.      pathname  and  returns  a pointer to the result.  Pathname is a character
  10.      array of length len.
  11. DIAGNOSTICS
  12.      Getcwd returns a null pointer and sets errno if  an  error  occurs.   The
  13.      error  will  reflect the system call errors that may occur if the path to
  14.      the current directory is searched upwards to  the  root  directory.   The
  15.      error ERANGE is returned if the result does not fit within len bytes.
  16. 5BSD                              May 12, 1986                               1