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 / FileType < prev    next >
Text File  |  1989-06-04  |  752b  |  38 lines

  1. FILETYPE(3)                Library Functions               FILETYPE(3)
  2.  
  3.  
  4.  
  5. NAME
  6.      filetype - return the type of file referenced
  7.  
  8. SYNOPSIS
  9.      #include <edlib.h>
  10.  
  11.      int filetype(path)
  12.      char *path;
  13.  
  14. DESCRIPTION
  15.      Filetype examines the file referenced in the path parameter
  16.      and returns the following tokens as its results:
  17.  
  18.       [TYPE_DIR]   File is of type directory
  19.  
  20.       [TYPE_FILE]  File is of type plain file.
  21.  
  22. DIAGNOSTICS
  23.      If an error occurs, then a value of -1 is returned and the
  24.      external variable errno is set to one of:
  25.  
  26.       [ENOMEM]  Not enough memory for temporary storage
  27.  
  28.       [EACCES]  Could not get a lock on the specified file.
  29.  
  30. AUTHOR
  31.      Edwin Hoogerbeets 01/08/88
  32.  
  33. SEE ALSO
  34.      isdir(3), isfile(3)
  35.  
  36.  
  37.  
  38.