home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff218.lzh
/
EdLib
/
man
/
ChDir
< prev
next >
Wrap
Text File
|
1989-06-04
|
977b
|
42 lines
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)