home *** CD-ROM | disk | FTP | other *** search
- CHDIR(3) Library Functions CHDIR(3)
-
-
-
- NAME
- chdir - change directory to a given AmigaDOS path
-
- SYNOPSIS
- #include <edlib.h>
-
- int chdir(path)
- char *path;
-
- DESCRIPTION
- Chdir changes the current working directory of the calling task
- to the path given in the path variable. The path may be any
- valid AmigaDOS path, including path names relative to the present
- current working directory.
-
- DIAGNOSTICS
- If an error occurs while trying to change directory, a value of
- -1 is returned and the external variable errno is set to one of:
-
- [EFAULT] The path variable was a null pointer.
-
- [ENOENT] The path variable did not contain the name of a
- directory.
-
- [EACCES] Chdir could not get a lock on the given directory.
- [this error should be rare]
-
- Otherwise, chdir returns a 0.
-
- AUTHOR
- Edwin Hoogerbeets 20/03/89
-
- SEE ALSO
- getcwd(3)
-
-
-
-