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 >
Text File  |  1989-06-04  |  977b  |  42 lines

  1. CHDIR(3)                   Library Functions                  CHDIR(3)
  2.  
  3.  
  4.  
  5. NAME
  6.      chdir - change directory to a given AmigaDOS path
  7.  
  8. SYNOPSIS
  9.      #include <edlib.h>
  10.  
  11.      int chdir(path)
  12.      char *path;
  13.  
  14. DESCRIPTION
  15.      Chdir changes the current working directory of the calling task
  16.      to the path given in the path variable. The path may be any
  17.      valid AmigaDOS path, including path names relative to the present
  18.      current working directory.
  19.  
  20. DIAGNOSTICS
  21.      If an error occurs while trying to change directory, a value of
  22.      -1 is returned and the external variable errno is set to one of:
  23.  
  24.        [EFAULT]  The path variable was a null pointer.
  25.  
  26.        [ENOENT]  The path variable did not contain the name of a
  27.                  directory.
  28.  
  29.        [EACCES]  Chdir could not get a lock on the given directory.
  30.                  [this error should be rare]
  31.  
  32.      Otherwise, chdir returns a 0.
  33.  
  34. AUTHOR
  35.      Edwin Hoogerbeets 20/03/89
  36.  
  37. SEE ALSO
  38.      getcwd(3)
  39.  
  40.  
  41.  
  42.