home *** CD-ROM | disk | FTP | other *** search
- GETCWD(3) Library Functions GETCWD(3)
-
-
-
- NAME
- getcwd - get the name of the current working directory
-
- SYNOPSIS
- #include <edlib.h>
-
- char *getcwd(buffer,size)
- char *buffer;
- int size;
-
- DESCRIPTION
- Getcwd gets the name of the current working directory and puts
- the string formed in the area pointed to by buffer. Buffer is
- assumed to be at least size bytes long. If buffer is a null
- pointer, then getcwd will allocate size bytes, which should
- later be freed using the Manx free() function. In both cases,
- getcwd returns a pointer to the first character in buffer.
-
- Note that getcwd will only give volume labels, and not device
- specifications, when constructing a directory name. Thus, if
- you are in the standard AmigaDOS recoverable ram disk, getcwd
- will return "RAMB0:" as the current working directory.
-
- DIAGNOSTICS
- If the current working directory cannot be determined, a null
- pointer is returned and any memory allocated (because the
- buffer parameter is null) is freed.
-
- AUTHOR
- Edwin Hoogerbeets 20/03/89
-
- SEE ALSO
- chdir(3)
-
-
-
-